/* Blog Styles */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 6rem;
    padding: 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch; /* Make all grid items same height */
}

.blog-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.blog-post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.blog-post-content {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-post-content h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: #333;
    font-family: "Inter", Arial, sans-serif !important;
}



.blog-post-excerpt {
    color: #444;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.read-more {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

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

/* Blog Post Full Page Styles (Medium-like, Dark Theme) */
.blog-post-full {
    max-width: 700px;
    margin: 6rem auto;
    background: #232323;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.25);
    padding: 2.5rem 2rem 3rem 2rem;
    color: #f3f3f3;
    line-height: 1.5;
    font-family: "Inter", Arial, sans-serif;
}

.blog-post-full h1 {
    font-size: 2.3rem;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #fff;
    letter-spacing: -1px;
    font-family: "Inter", Arial, sans-serif !important;
}

.blog-post-full h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    font-weight: 600;
    margin: 2.5rem 0 1.2rem 0;
    color: #e0e0e0;
    font-family: "Inter", Arial, sans-serif!important;
}

.blog-post-full h3 {
    font-size: 1.4rem;
    font-family: "Inter", Arial, sans-serif!important;
    line-height: 1.3;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #d0d0d0;
}

.blog-post-full h4 {
    font-size: 1.2rem;
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.3;
    font-weight: 600;
    margin: 1.8rem 0 0.8rem 0;
    color: #d0d0d0;
}

.blog-post-full p {
    font-size: 1rem;
    letter-spacing: 0.3px;
    margin: 1rem 0;
    color: #d9d9d9;
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.7;
}

.blog-post-full ul, .blog-post-full ol {
    padding-inline-start: 1.5rem;
    color: #eaeaea;
    margin: 1.5rem 0;
    font-family: "Inter", Arial, sans-serif;
}

.blog-post-full li p {
    margin-bottom: 0;
    margin-top: 0.8rem;
    font-size: 1rem;
    font-family: "Inter", Arial, sans-serif;
}

.blog-post-full li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: #eaeaea;
    font-family: "Inter", Arial, sans-serif;
}

.blog-post-full strong, .blog-post-full b {
    color: #fff;
    font-weight: 700;
    font-family: "Inter", Arial, sans-serif;
}

.blog-post-full em, .blog-post-full i {
    color: #d9d9d9;
    font-family: "Inter", Arial, sans-serif;
}

.blog-post-full blockquote {
    border-left: 4px solid #ff6b6b;
    background: #2a2a2a;
    color: #ffbdbd;
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    font-style: italic;
    font-size: 1.1rem;
    border-radius: 0 8px 8px 0;
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.6;
}

.blog-post-full pre {
    background: #2a2a2a;
    color: #fffae3;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.95rem;
    border: 1px solid #3a3a3a;
    font-family: "Inter", Arial, sans-serif;
}

.blog-post-full code {
    background: #2a2a2a;
    color: #fffae3;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: "Inter", Arial, sans-serif;
    border: 1px solid #3a3a3a;
}

.blog-post-hero {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 10px;
  
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.blog-post-date {
    color: #ffbdbd;
    font-size: 1rem;
    margin-bottom: 2.2rem;
    letter-spacing: 1px;
    margin-top: 0 !important;
}

/* Sidebar Table of Contents */
.blog-toc-sidebar {
    position: fixed;
    top: 100px;
    right: 3vw;
    width: 240px;
    background: #232323;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
    padding: 1.5rem 1rem;
    z-index: 100;
    max-height: 70vh;
    overflow-y: auto;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-toc-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
}

.blog-toc-link {
    color: #bdbdbd;
    background: none;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    display: block;
}
.blog-toc-link:hover {
    color: #fff;
    background: #333;
}
.blog-toc-link.active {
    background: none;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(90deg, #ff6b6b 0%, #ff8e53 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    box-shadow: none;
}

.blog-toc-sub {
    margin-left: 1.2rem;
    font-size: 0.95rem;
    color: #bdbdbd;
}

.blog-toc-dash {
    color: #bdbdbd;
    margin-right: 0.5rem;
    font-weight: bold;
}
.blog-post-date  {
    color: #868686;
    font-size: 0.9rem;
    margin-bottom: 0.5rem !important;
    margin-top: 0 !important;
}

@media (max-width: 1100px) {
    .blog-toc-sidebar {
        display: none;
    }
}

@media (max-width: 800px) {
    .blog-post-full {
        padding: 1.2rem 0.5rem 2rem 0.5rem;
        margin-top: 7rem !important;
    }
    .blog-post-full h1 {
        font-size: 2rem;
    }
    .blog-grid{
        margin-top: 6rem;
    }
}

/* Blog Post Card - Dark Theme */
.blog-post-dark {
    background: #212121;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    color: #fff;
    border: 1px solid #232323;
    transition: transform 0.2s, box-shadow 0.2s, border 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.blog-post-dark:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 30px 24px rgba(0,0,0,0.22);
    border: 1px solid #232323;
}
.blog-post-dark .blog-post-content {
    background: transparent; /* Remove grey background for dark theme */
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-post-dark .blog-post-content h2 {
    color: #fff;
}
.blog-post-dark .blog-post-date {
    color: #ffbdbd;
}
.blog-post-dark .blog-post-excerpt {
    color: #e0e0e0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.blog-post-dark .read-more {
    display: inline-block;
    padding: 0.9rem 2.4rem;
    border-radius: 50px;
    background: linear-gradient(270deg, rgba(255,43,128,0.9) 0%, rgba(255,136,31,0.9) 100%);
    color: #fff;
    font-family: "Inter", sans-serif;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(255, 43, 128, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    margin-top: auto; /* Push button to bottom */
    text-align: center;
    text-decoration: none;
    align-self: flex-start; /* Don't stretch button width */
}
.blog-post-dark .read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-post-dark .read-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 43, 128, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    background: linear-gradient(90deg, #FF881F 2.14%, #FF2B80 102.54%);
    text-decoration: none;
}
.blog-post-dark .read-more:hover::before {
    left: 100%;
}
.blog-post-dark .blog-post-image img {
    border-radius: 12px 12px 0 0;
    background: #232323;
}

/* Remove blog-specific footer and layout overrides */
/* (No blog-specific body, main.blog-container, or .footer rules here) */

.blog-post-full .blog-post-date {
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
}

/* Blog Table Styles */
.blog-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 2px solid #333;
}

.blog-table th,
.blog-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-right: 1px solid #444;
  border-bottom: 1px solid #444;
  color: #e0e0e0;
  vertical-align: middle;
}

.blog-table th:last-child,
.blog-table td:last-child {
  border-right: none;
}

.blog-table th {
  background: #2d2d2d;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #555;
}

.blog-table tr:nth-child(even) {
  background: #232323;
}

.blog-table tr:hover {
  background: #2a2a2a;
  transition: background 0.2s ease;
}

.blog-table td {
  font-size: 0.95rem;
  line-height: 1.5;
}

.blog-table tr:last-child td {
  border-bottom: none;
}

/* Reset paragraph styles inside table cells */
.blog-table td p,
.blog-table th p {
  margin: 0;
  padding: 0;
}

/* Apply table styles to all tables in blog content */
.blog-post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 2px solid #333;
}

.blog-post-body table th,
.blog-post-body table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-right: 1px solid #444;
  border-bottom: 1px solid #444;
  color: #e0e0e0;
  vertical-align: middle;
}

.blog-post-body table th:last-child,
.blog-post-body table td:last-child {
  border-right: none;
}

.blog-post-body table th {
  background: #2d2d2d;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #555;
}

.blog-post-body table tr:nth-child(even) {
  background: #232323;
}

.blog-post-body table tr:hover {
  background: #2a2a2a;
  transition: background 0.2s ease;
}

.blog-post-body table td {
  font-size: 0.95rem;
  line-height: 1.5;
}

.blog-post-body table tr:last-child td {
  border-bottom: none;
}

/* Reset paragraph styles inside table cells */
.blog-post-body table td p,
.blog-post-body table th p {
  margin: 0 !important;
  padding: 0;
}

/* Responsive table */
@media (max-width: 768px) {
  .blog-table,
  .blog-post-body table {
    font-size: 0.85rem;
  }
  .blog-container{
    margin-top: 0;
  }
  
  .blog-table th,
  .blog-table td,
  .blog-post-body table th,
  .blog-post-body table td {
    padding: 0.75rem 1rem;
  }
} 