/* Import variables and fonts */
@import "variables.css";
@import "fonts.css";

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color-dark);
  background: linear-gradient(135deg, #f9fafb 0%, #edf2f7 50%, #e6edf7 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  opacity: 0.4;
  background: 
    radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.05) 0%, transparent 25%),
    radial-gradient(circle at 80% 50%, rgba(66, 153, 225, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 40% 80%, rgba(237, 100, 166, 0.05) 0%, transparent 30%);
  pointer-events: none;
}

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

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--accent-blue);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-4);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

h5 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

h6 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: var(--spacing-4);
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--spacing-4);
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-area {
  padding: var(--spacing-8) 0;
  flex: 1;
}

/* Header */
.site-header {
  background: var(--primary-background);
  color: var(--text-color);
  padding: var(--spacing-4) 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 10;
}

.site-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Navigation Layout Options */
.site-header-content.centered {
  flex-direction: column;
  text-align: center;
}

.site-header-content.centered .site-nav {
  margin-top: var(--spacing-4);
}

.site-header-content.logo-left {
  flex-direction: row;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.site-logo {
  height: 2rem;
  width: auto;
}

.site-title a {
  color: var(--text-color);
  display: flex;
  align-items: center;
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
}

.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
}

.site-nav li {
  margin-left: var(--spacing-6);
}

.site-nav a {
  color: var(--text-color);
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.site-nav a:hover {
  opacity: 1;
  color: rgba(255, 255, 255, 1);
}

/* Hero section */
.hero {
  background: var(--primary-background);
  color: var(--text-color);
  padding: var(--spacing-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  right: -5%;
  top: 20%;
  width: 40%;
  height: 75%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" fill="none"><circle cx="100" cy="100" r="100" fill="rgba(255, 255, 255, 0.1)"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 1;
  opacity: 0.5;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: var(--spacing-6);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-8);
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  transition: all 0.2s ease-in-out;
  border: none;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
  color: white;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-color), var(--accent-blue));
}

.btn-secondary {
  background: white;
  color: var(--accent-color);
}

.btn-secondary:hover {
  color: var(--accent-color);
}

/* Post cards */
.post-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-6);
  margin: var(--spacing-12) 0;
  position: relative;
  z-index: 1;
}

.post-card {
  background-color: rgba(255, 255, 255, 0.65);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15), 
              0 0 20px rgba(124, 58, 237, 0.08);
  transition: all 0.3s ease-in-out;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  top: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease-in-out, top 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.post-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.post-card:nth-child(2) {
  transition-delay: 0.1s;
}

.post-card:nth-child(3) {
  transition-delay: 0.2s;
}

.post-card:nth-child(4) {
  transition-delay: 0.3s;
}

.post-card:nth-child(5) {
  transition-delay: 0.4s;
}

.post-card:nth-child(6) {
  transition-delay: 0.5s;
}

.post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25),
              0 0 30px rgba(124, 58, 237, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.75);
}

.post-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(45deg, rgba(124, 58, 237, 0.05), rgba(66, 153, 225, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.post-card:hover:before {
  opacity: 1;
}

.post-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 2;
  position: relative;
}

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

.post-card-content {
  padding: var(--spacing-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-3);
  color: var(--text-color-dark);
  transition: color 0.3s ease;
}

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

.post-card-excerpt {
  margin-bottom: var(--spacing-4);
  color: #4b5563;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  color: #6b7280;
  font-size: 0.875rem;
}

.post-card-meta img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: var(--spacing-2);
  object-fit: cover;
}

/* Single post */
.post-full {
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: var(--spacing-8);
  margin: var(--spacing-8) 0;
}

.post-template .post-header {
  margin-bottom: var(--spacing-8);
}

.post-template .post-title {
  font-size: 3rem;
  margin-bottom: var(--spacing-4);
}

.post-template .post-meta {
  display: flex;
  align-items: center;
  color: #6b7280;
  margin-bottom: var(--spacing-6);
}

.post-template .post-meta img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: var(--spacing-2);
  object-fit: cover;
}

.post-template .post-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

/* Fix for list alignment in posts */
.post-template .post-content ul,
.post-template .post-content ol {
  margin: 0 0 var(--spacing-4) 1.25rem;
  padding-left: 1.25rem;
}

.post-template .post-content ol {
  list-style: decimal;
}

.post-template .post-content ul {
  list-style: disc;
}

.post-template .post-content li {
  margin-bottom: 0.5rem;
}

/* Nested lists */
.post-template .post-content ul ul,
.post-template .post-content ul ol,
.post-template .post-content ol ol,
.post-template .post-content ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Enhanced blockquote styling */
.post-template .post-content blockquote {
  border-left: 3px solid var(--accent-color);
  padding: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #4a5568;
  background-color: rgba(237, 242, 247, 0.5);
  border-radius: var(--border-radius);
}

/* Code block improvements */
.post-template .post-content pre {
  background-color: #f7fafc;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid #e2e8f0;
}

.post-template .post-content code {
  background-color: #f1f5f9;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}

.post-template .post-content pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

/* Table formatting */
.post-template .post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.post-template .post-content th {
  background-color: #f7fafc;
  font-weight: 600;
  text-align: left;
}

.post-template .post-content th,
.post-template .post-content td {
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
}

.post-template .post-content tr:nth-child(even) {
  background-color: #f9fafb;
}

/* Paragraph spacing consistency */
.post-template .post-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Heading hierarchy spacing */
.post-template .post-content h1,
.post-template .post-content h2,
.post-template .post-content h3,
.post-template .post-content h4,
.post-template .post-content h5,
.post-template .post-content h6 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.post-template .post-content h1 {
  font-size: 2.25rem;
}

.post-template .post-content h2 {
  font-size: 1.875rem;
}

.post-template .post-content h3 {
  font-size: 1.5rem;
}

.post-template .post-content h4 {
  font-size: 1.25rem;
}

/* Image captions */
.post-template .post-content figcaption {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Indented content like blockquotes or code blocks */
.post-template .post-content blockquote,
.post-template .post-content pre {
  margin-left: 0;
  margin-right: 0;
}

.post-template .post-content img {
  margin: var(--spacing-8) 0;
  border-radius: var(--border-radius);
}

.post-template .post-feature-image {
  margin: -var(--spacing-8);
  margin-bottom: var(--spacing-8);
  max-height: 500px;
  overflow: hidden;
}

.post-template .post-feature-image img {
  width: 100%;
  object-fit: cover;
}

/* Featured post */
.featured-post {
  background-color: rgba(255, 255, 255, 0.65);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2),
              0 0 30px rgba(124, 58, 237, 0.08);
  margin-bottom: var(--spacing-12);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.3s ease-in-out;
  position: relative;
}

.featured-post:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(45deg, rgba(124, 58, 237, 0.05), rgba(66, 153, 225, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.featured-post:hover:before {
  opacity: 1;
}

.featured-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
              0 0 40px rgba(124, 58, 237, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.75);
}

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

.featured-post-content {
  padding: var(--spacing-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-post-tag {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: var(--spacing-1) var(--spacing-3);
  border-radius: var(--border-radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--spacing-4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-post-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-4);
  color: var(--text-color-dark);
  transition: color 0.3s ease;
}

.featured-post:hover .featured-post-title a {
  color: var(--accent-color);
}

.featured-post-title a {
  color: var(--text-color-dark);
}

.featured-post-title a:hover {
  color: var(--accent-color);
}

/* Footer */
.site-footer {
  background-color: #1f2937;
  color: white;
  padding: var(--spacing-10) 0;
  margin-top: auto;
}

.site-footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer-info {
  max-width: 400px;
}

.site-footer-info .site-logo {
  margin-bottom: var(--spacing-4);
  height: 2.5rem;
}

.site-footer-nav {
  display: flex;
  gap: var(--spacing-16);
}

.footer-nav-column h5 {
  color: white;
  margin-bottom: var(--spacing-4);
  font-size: 1rem;
  opacity: 0.9;
}

.footer-nav-column ul {
  list-style: none;
}

.footer-nav-column li {
  margin-bottom: var(--spacing-2);
}

.footer-nav-column a {
  color: #9ca3af;
  transition: color 0.2s ease;
}

.footer-nav-column a:hover {
  color: white;
}

.site-footer-bottom {
  margin-top: var(--spacing-10);
  padding-top: var(--spacing-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Pagination */
.pagination {
  margin: var(--spacing-10) 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-4);
}

.pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-2) var(--spacing-4);
  border-radius: var(--border-radius);
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  color: var(--text-color-dark);
  font-weight: 500;
  transition: all 0.2s ease;
}

.pagination-button:hover {
  background-color: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.pagination-button svg {
  width: 20px;
  height: 20px;
}

.pagination-prev svg {
  margin-right: var(--spacing-2);
}

.pagination-next svg {
  margin-left: var(--spacing-2);
}

.pagination-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-2) var(--spacing-4);
  border-radius: var(--border-radius);
  background-color: var(--accent-color);
  color: white;
  font-weight: 500;
}

.pagination-current {
  font-size: 0.95rem;
}

/* Remove old pagination styles that might conflict */
.pagination a, 
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Newsletter Signup */
.newsletter-signup {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-blue) 100%);
  padding: var(--spacing-12) 0;
  margin: var(--spacing-12) 0;
  border-radius: var(--border-radius-lg);
  color: white;
}

.newsletter-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--spacing-6);
}

.newsletter-box h3 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-4);
}

.newsletter-box p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-6);
  opacity: 0.9;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subscribe-form-fields {
  display: flex;
  width: 100%;
  margin-bottom: var(--spacing-4);
}

.subscribe-email {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1rem;
}

.subscribe-button {
  background-color: white;
  color: var(--accent-color);
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-weight: 600;
  cursor: pointer;
}

.subscribe-button:hover {
  background-color: #f3f4f6;
}

/* Post navigation */
.post-navigation {
  margin-top: var(--spacing-8);
  padding-top: var(--spacing-6);
  border-top: 1px solid #e5e7eb;
}

.post-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-4);
}

.post-nav-item {
  padding: var(--spacing-4);
  background-color: #f9fafb;
  border-radius: var(--border-radius);
  transition: background-color 0.2s ease;
}

.post-nav-item:hover {
  background-color: #f3f4f6;
}

.post-nav-label {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: var(--spacing-2);
}

.post-nav-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-color-dark);
}

/* Tag and Author pages */
.tag-header,
.author-header {
  text-align: center;
  margin-bottom: var(--spacing-8);
}

.tag-title,
.author-name {
  font-size: 3rem;
  margin-bottom: var(--spacing-4);
}

.tag-description,
.author-bio {
  font-size: 1.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #6b7280;
}

.author-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-profile-image {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  margin-bottom: var(--spacing-4);
  object-fit: cover;
}

.author-info {
  text-align: center;
}

.author-meta {
  display: flex;
  justify-content: center;
  gap: var(--spacing-4);
  margin-top: var(--spacing-4);
}

.author-location,
.author-website,
.author-twitter,
.author-facebook {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Related posts */
.related-posts {
  margin-top: var(--spacing-12);
}

.related-posts-title {
  font-size: 2rem;
  margin-bottom: var(--spacing-6);
  text-align: center;
}

/* Koenig Editor Styles */
/* Content Width Classes */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin-left: 50%;
  transform: translateX(-50%);
  max-width: 1200px;
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.kg-width-full img {
  max-width: 100%;
  width: 100%;
}

/* Image Card */
.kg-image-card {
  margin: var(--spacing-8) 0;
}

.kg-image-card img {
  display: block;
  margin: 0 auto;
  border-radius: var(--border-radius);
}

.kg-image-card figcaption {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  padding-top: var(--spacing-2);
}

/* Gallery Card */
.kg-gallery-container {
  display: flex;
  flex-direction: column;
  margin: var(--spacing-8) 0;
}

.kg-gallery-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.kg-gallery-image img {
  display: block;
  margin: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kg-gallery-row:not(:first-of-type) {
  margin: 0.25rem 0 0 0;
}

.kg-gallery-image:not(:first-of-type) {
  margin: 0 0 0 0.25rem;
}

/* Other Koenig Cards */
.kg-bookmark-card {
  margin: 2rem 0;
}

.kg-bookmark-container {
  display: flex;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.kg-bookmark-content {
  flex: 1;
  padding: 1.5rem;
}

.kg-bookmark-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.kg-bookmark-description {
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: #9ca3af;
}

.kg-bookmark-icon {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
}

.kg-bookmark-author {
  margin-right: 0.5rem;
}

.kg-bookmark-publisher {
  margin-right: 0.5rem;
}

.kg-bookmark-thumbnail {
  width: 160px;
  object-fit: cover;
  border-left: 1px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 1024px) {
  .featured-post {
    grid-template-columns: 1fr;
  }
  
  .featured-post-image {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .site-header-content {
    flex-direction: column;
  }
  
  .site-nav {
    margin-top: var(--spacing-4);
  }
  
  .site-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .site-nav li {
    margin-left: var(--spacing-4);
    margin-right: var(--spacing-4);
    margin-bottom: var(--spacing-2);
  }
  
  .site-nav li:first-child {
    margin-left: var(--spacing-4);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .post-feed {
    grid-template-columns: 1fr;
  }
  
  .site-footer-content {
    flex-direction: column;
  }
  
  .site-footer-nav {
    margin-top: var(--spacing-8);
    flex-direction: column;
    gap: var(--spacing-8);
  }
  
  .kg-width-wide {
    width: 100%;
  }
  
  .post-nav-grid {
    grid-template-columns: 1fr;
  }
  
  .subscribe-form-fields {
    flex-direction: column;
  }
  
  .subscribe-email {
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-2);
  }
  
  .subscribe-button {
    border-radius: var(--border-radius);
  }
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
  margin-left: var(--spacing-4);
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background-color: white;
  transition: all 0.3s ease;
  position: absolute;
}

.hamburger {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hamburger::before,
.hamburger::after {
  content: '';
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

.menu-toggle.is-active .hamburger {
  background-color: transparent;
}

.menu-toggle.is-active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.is-active .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-background);
    padding: var(--spacing-4);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .site-nav.is-active {
    display: block;
  }
  
  .site-nav ul {
    flex-direction: column;
  }
  
  .site-nav li {
    margin: var(--spacing-2) 0;
  }
}

/* Custom list styles */
.list-alphabet {
  list-style: lower-alpha !important;
}

.list-roman {
  list-style: lower-roman !important;
}

.list-decimal {
  list-style: decimal !important;
}

.list-none {
  list-style: none !important;
}

/* Ghost callout cards */
.kg-callout-card {
  display: flex;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--border-radius);
  background-color: rgba(237, 242, 247, 0.8);
  border-left: 3px solid var(--accent-color);
}

.kg-callout-card-grey {
  background-color: rgba(226, 232, 240, 0.8);
  border-left-color: #4a5568;
}

.kg-callout-card-white {
  background-color: rgba(255, 255, 255, 0.9);
  border-left-color: #a0aec0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.kg-callout-card-blue {
  background-color: rgba(235, 248, 255, 0.8);
  border-left-color: #3182ce;
}

.kg-callout-card-green {
  background-color: rgba(240, 255, 244, 0.8);
  border-left-color: #48bb78;
}

.kg-callout-card-yellow {
  background-color: rgba(255, 250, 230, 0.8);
  border-left-color: #ecc94b;
}

.kg-callout-card-red {
  background-color: rgba(254, 235, 235, 0.8);
  border-left-color: #e53e3e;
}

.kg-callout-card-pink {
  background-color: rgba(255, 239, 246, 0.8);
  border-left-color: #d53f8c;
}

.kg-callout-card-purple {
  background-color: rgba(250, 240, 255, 0.8);
  border-left-color: #805ad5;
}

.kg-callout-card-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 1rem;
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
}

.kg-callout-card-content {
  min-width: 0;
  flex-grow: 1;
}

.kg-callout-card-content p:first-child {
  margin-top: 0;
}

.kg-callout-card-content p:last-child {
  margin-bottom: 0;
}

/* Call to action (CTA) styling */
.kg-cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Respect editor color settings */
.kg-cta-card.kg-style-dark {
  color: #ffffff;
}

.kg-cta-card.kg-style-light {
  color: #000000;
}

.kg-cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-align: left;
}

.kg-cta-description {
  margin-bottom: 1rem;
  width: 100%;
  text-align: left;
}

.kg-cta-button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.kg-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Styles for the built-in Ghost CTA */
.gh-post-upgrade-cta {
  margin: 1.5rem 0;
  padding: 0;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.gh-post-upgrade-cta-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1.5rem;
  text-align: left;
}

.gh-post-upgrade-cta h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: white;
}

.gh-post-upgrade-cta .gh-btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  margin-bottom: 0.75rem;
  background-color: white;
}

.gh-post-upgrade-cta .gh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gh-post-upgrade-cta p {
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 0.875rem;
  text-align: left;
}

/* CTA Card minimal styling */
.kg-card.kg-cta-card.kg-cta-minimal {
  margin: 1.5rem 0 !important;
  padding: 0 !important;
  text-align: left !important;
  background-color: #f1f3f4 !important;
  border-radius: var(--border-radius);
}

.kg-cta-card .kg-cta-content {
  display: block !important;
  width: 100% !important;
}

.kg-cta-card .kg-cta-content-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 1rem 1.25rem !important;
  text-decoration: none !important;
  width: 100% !important;
}

.kg-cta-card .kg-cta-text {
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  flex-grow: 1 !important;
}

.kg-cta-card .kg-cta-text p {
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  font-weight: 500 !important;
  font-size: 1.1rem !important;
  color: #000000 !important;
}

.kg-cta-card a.kg-cta-button {
  display: inline-block !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--border-radius) !important;
  font-weight: 600 !important;
  margin-left: auto !important;
  white-space: nowrap !important;
  min-width: fit-content !important;
}

/* Fix any descendant elements */
.kg-cta-card .kg-cta-text * {
  text-align: left !important;
}

/* Button or action card styling */
.kg-button-card {
  margin: 2rem 0;
  text-align: center;
}

.kg-button-card a.kg-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent-color);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.kg-button-card a.kg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.kg-button-card a.kg-btn-accent {
  background-color: var(--accent-color);
}

.kg-button-card a.kg-btn-secondary {
  background-color: white;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

/* Fix for the Koenig editor cards spacing */
.kg-card {
  margin: 2rem 0;
}

.kg-card + .kg-card {
  margin-top: 2rem;
}

/* Link card styling - completely revised */
.kg-card.kg-link-card {
  margin: 2rem 0;
  text-align: center;
  background-color: #f1f3f4;
  border-radius: var(--border-radius);
}

.kg-link-card a.kg-link-card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  text-decoration: none;
  color: #000000 !important;
  width: 100%;
}

.kg-link-card-text {
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: #000000;
}

.kg-link-card .kg-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  background-color: #000000;
  color: white !important;
  transition: all 0.2s ease-in-out;
}

.kg-link-card .kg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Fix for the link icon */
.kg-link-card-icon {
  margin-right: 0.5rem;
} 