 /* Base styles */
 :root {
     --primary: #6a11cb;
     --primary-light: #2575fc;
     --dark: #1F2937;
     --gray: #6B7280;
     --light: #f9fafb;
     --white: #ffffff;
     --gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
     --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
     --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
     --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
     --transition: all 0.3s ease;
 }

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

 body {
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
     line-height: 1.6;
     color: var(--dark);
     background-color: var(--light);
     overflow-x: hidden;
 }

 .main-container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 2rem;
     display: grid;
     grid-template-columns: 1fr 300px;
     gap: 3rem;
     align-items: start;
 }

 .content-column {
     min-width: 0;
     /* Prevents grid overflow */
 }

 .sidebar-column {
     position: sticky;
     top: 100px;
 }

 h1,
 h2,
 h3,
 h4,
 h5,
 h6 {
     color: var(--dark);
     margin-bottom: 1rem;
     line-height: 1.3;
 }

 h1 {
     font-size: 2.5rem;
     font-weight: 700;
 }

 h2 {
     font-size: 2rem;
     font-weight: 600;
     margin-top: 2rem;
 }

 h3 {
     font-size: 1.5rem;
     font-weight: 600;
     margin-top: 1.5rem;
 }

 p {
     font-size: 1.1rem;
     color: var(--dark);
     line-height: 1.8;
     margin-bottom: 1.5rem;
 }

 a {
     text-decoration: none;
     transition: var(--transition);
     color: var(--primary);
 }

 a:hover {
     text-decoration: underline;
 }

 /* Header Navigation */
 .header-nav {
     background: var(--white);
     padding: 1rem 0;
     box-shadow: var(--shadow-sm);
     position: sticky;
     top: 0;
     z-index: 100;
 }

 .nav-content {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 2rem;
     display: flex;
     align-items: center;
     gap: 1rem;
 }

 .back-btn {
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
     padding: 0.5rem 1rem;
     background: var(--gradient);
     color: var(--white);
     border-radius: 8px;
     font-size: 0.9rem;
     font-weight: 600;
     transition: var(--transition);
 }

 .back-btn:hover {
     transform: translateY(-2px);
     box-shadow: var(--shadow-md);
     text-decoration: none;
     color: var(--white);
 }

 .breadcrumb {
     color: var(--gray);
     font-size: 0.9rem;
 }

 .breadcrumb a {
     color: var(--primary);
 }

 /* Blog Post Container */
 .blog-post-container {
     padding: 3rem 0;
     background-color: var(--light);
     min-height: 100vh;
 }

 .loading-indicator {
     text-align: center;
     padding: 3rem;
     font-size: 1.2rem;
     color: var(--gray);
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 0.75rem;
     grid-column: 1 / -1;
 }

 .loading-indicator::before {
     content: '';
     width: 1.5rem;
     height: 1.5rem;
     border: 3px solid rgba(106, 17, 203, 0.2);
     border-top-color: var(--primary);
     border-radius: 50%;
     animation: spin 1s linear infinite;
 }

 @keyframes spin {
     to {
         transform: rotate(360deg);
     }
 }

 /* Blog Post Styles */
 .blog-post {
     background: var(--white);
     border-radius: 12px;
     padding: 3rem;
     box-shadow: var(--shadow-md);
     margin-bottom: 2rem;
     animation: fadeIn 0.6s ease forwards;
 }

 @keyframes fadeIn {
     from {
         opacity: 0;
         transform: translateY(20px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .post-title {
     font-size: 2.5rem;
     font-weight: 700;
     color: var(--dark);
     margin-bottom: 1.5rem;
     line-height: 1.2;
 }

 .post-meta {
     display: flex;
     align-items: center;
     gap: 1rem;
     margin-bottom: 2rem;
     padding-bottom: 1.5rem;
     border-bottom: 2px solid #f1f5f9;
     font-size: 0.95rem;
     color: var(--gray);
     flex-wrap: wrap;
 }

 .post-meta span {
     display: flex;
     align-items: center;
     gap: 0.3rem;
 }

 .post-category {
     background: var(--gradient);
     color: var(--white);
     padding: 0.3rem 0.8rem;
     border-radius: 20px;
     font-weight: 600;
     font-size: 0.8rem;
 }

 .post-image {
     width: 100%;
     max-width: 800px;
     height: 400px;
     object-fit: cover;
     border-radius: 8px;
     margin: 0 auto 2rem auto;
     display: block;
     box-shadow: var(--shadow-sm);
 }

 .post-content {
     font-size: 1.1rem;
     line-height: 1.8;
     color: var(--dark);
 }

 .post-content h2 {
     color: var(--primary);
     border-left: 4px solid var(--primary);
     padding-left: 1rem;
     margin-top: 2.5rem;
 }

 .post-content h3 {
     color: var(--dark);
     margin-top: 2rem;
 }

 .post-content ul,
 .post-content ol {
     margin: 1.5rem 0;
     padding-left: 2rem;
 }

 .post-content li {
     margin-bottom: 0.5rem;
     line-height: 1.7;
 }

 .post-content blockquote {
     background: linear-gradient(135deg, rgba(106, 17, 203, 0.05) 0%, rgba(37, 117, 252, 0.05) 100%);
     border-left: 4px solid var(--primary);
     padding: 1.5rem;
     margin: 2rem 0;
     border-radius: 0 8px 8px 0;
     font-style: italic;
     color: var(--gray);
 }

 .post-content code {
     background: #f8fafc;
     padding: 0.2rem 0.4rem;
     border-radius: 4px;
     font-family: 'Courier New', monospace;
     font-size: 0.9em;
     color: var(--primary);
 }

 .post-content pre {
     background: #1e293b;
     color: #e2e8f0;
     padding: 1.5rem;
     border-radius: 8px;
     overflow-x: auto;
     margin: 1.5rem 0;
 }

 .post-content pre code {
     background: none;
     padding: 0;
     color: inherit;
 }

 /* Social Share Buttons */
 .social-share {
     background: var(--white);
     border-radius: 12px;
     padding: 1.5rem;
     box-shadow: var(--shadow-md);
     margin-bottom: 2rem;
     border-top: 3px solid var(--primary);
 }

 .social-share h4 {
     color: var(--primary);
     margin-bottom: 1rem;
     font-size: 1.1rem;
     display: flex;
     align-items: center;
     gap: 0.5rem;
 }

 .share-buttons {
     display: flex;
     gap: 0.75rem;
     flex-wrap: wrap;
 }

 .share-btn {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     gap: 0.5rem;
     padding: 0.6rem 1rem;
     border-radius: 8px;
     font-size: 0.9rem;
     font-weight: 600;
     text-decoration: none;
     transition: var(--transition);
     color: var(--white);
     min-width: 100px;
 }

 .share-btn:hover {
     transform: translateY(-2px);
     box-shadow: var(--shadow-md);
     text-decoration: none;
     color: var(--white);
 }

 .share-btn i {
     font-size: 1rem;
 }

 .share-facebook {
     background: #1877f2;
 }

 .share-facebook:hover {
     background: #166fe5;
 }

 .share-twitter {
     background: #1da1f2;
 }

 .share-twitter:hover {
     background: #0d8bd9;
 }

 .share-linkedin {
     background: #0077b5;
 }

 .share-linkedin:hover {
     background: #005885;
 }

 .share-whatsapp {
     background: #25d366;
 }

 .share-whatsapp:hover {
     background: #128c7e;
 }

 .share-email {
     background: var(--gray);
 }

 .share-email:hover {
     background: #4b5563;
 }

 .share-copy {
     background: var(--primary);
 }

 .share-copy:hover {
     background: #5a0ea0;
 }

 /* Table of Contents */
 .table-of-contents {
     background: var(--white);
     border-radius: 12px;
     padding: 1.5rem;
     box-shadow: var(--shadow-md);
     margin-bottom: 2rem;
     position: sticky;
     top: 120px;
 }

 .table-of-contents h4 {
     color: var(--primary);
     margin-bottom: 1rem;
     font-size: 1.1rem;
     display: flex;
     align-items: center;
     gap: 0.5rem;
 }

 .toc-list {
     list-style: none;
     padding: 0;
 }

 .toc-list li {
     margin-bottom: 0.5rem;
 }

 .toc-list a {
     color: var(--gray);
     font-size: 0.9rem;
     padding: 0.3rem 0;
     display: block;
     border-radius: 4px;
     transition: var(--transition);
 }

 .toc-list a:hover {
     color: var(--primary);
     background: rgba(106, 17, 203, 0.05);
     padding-left: 0.5rem;
     text-decoration: none;
 }

 /* Sidebar Ads */
 .sidebar-ads {
     display: flex;
     flex-direction: column;
     gap: 2rem;
 }

 .ad-card {
     background: var(--white);
     border-radius: 12px;
     overflow: hidden;
     box-shadow: var(--shadow-md);
     transition: var(--transition);
     border: 1px solid #e2e8f0;
     position: relative;
 }

 .ad-card:hover {
     transform: translateY(-3px);
     box-shadow: var(--shadow-lg);
 }

 .ad-card a {
     display: block;
     text-decoration: none;
     color: inherit;
 }

 .ad-image {
     width: 100%;
     height: 150px;
     object-fit: cover;
     transition: var(--transition);
 }

 .ad-card:hover .ad-image {
     transform: scale(1.05);
 }

 .ad-content {
     padding: 1rem;
 }

 .ad-title {
     font-size: 0.9rem;
     font-weight: 600;
     color: var(--dark);
     margin: 0 0 0.5rem 0;
     line-height: 1.3;
 }

 .ad-description {
     font-size: 0.8rem;
     color: var(--gray);
     margin: 0;
     line-height: 1.4;
 }

 .ad-sponsored {
     position: absolute;
     top: 0.5rem;
     right: 0.5rem;
     background: rgba(0, 0, 0, 0.7);
     color: var(--white);
     padding: 0.2rem 0.5rem;
     border-radius: 4px;
     font-size: 0.7rem;
     text-transform: uppercase;
     letter-spacing: 0.5px;
 }

 /* CTA Support Section */
 .cta-support {
     margin-bottom: 2rem;
 }

 .cta-box {
     background: var(--gradient);
     color: var(--white);
     padding: 1.5rem;
     border-radius: 12px;
     text-align: center;
     box-shadow: var(--shadow-lg);
     position: relative;
     overflow: hidden;
 }

 .cta-box::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
     opacity: 0.3;
     z-index: 0;
 }

 .cta-box h3 {
     font-size: 1.4rem;
     margin-bottom: 0.75rem;
     color: var(--white);
     position: relative;
     z-index: 1;
 }

 .cta-box p {
     font-size: 1rem;
     margin-bottom: 1.25rem;
     color: rgba(255, 255, 255, 0.9);
     position: relative;
     z-index: 1;
 }

 .btn {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     padding: 0.8rem 2rem;
     font-size: 1rem;
     font-weight: 600;
     text-align: center;
     border: none;
     border-radius: 8px;
     cursor: pointer;
     transition: var(--transition);
     text-decoration: none;
     position: relative;
     z-index: 1;
 }

 .btn-primary {
     background: var(--white);
     color: var(--primary);
     box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
 }

 .btn-primary:hover {
     transform: translateY(-2px);
     box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
     text-decoration: none;
     color: var(--primary);
 }

 /* Footer with attribution */
 .footer {
     text-align: center;
     padding: 2rem 0 1rem;
     font-size: 0.9rem;
     color: var(--gray);
     background-color: var(--white);
     border-top: 1px solid #e2e8f0;
 }

 /* Error State */
 .error-message {
     text-align: center;
     padding: 3rem;
     color: var(--gray);
     grid-column: 1 / -1;
 }

 .error-message h2 {
     font-size: 2rem;
     margin-bottom: 1rem;
     color: #dc2626;
 }

 .error-message p {
     font-size: 1.1rem;
     margin-bottom: 2rem;
 }

 /* Responsive styles */
 @media (max-width: 1024px) {
     .main-container {
         grid-template-columns: 1fr;
         gap: 2rem;
     }

     .sidebar-column {
         position: static;
         order: -1;
     }

     .sidebar-ads {
         display: grid;
         grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
         gap: 1rem;
     }
 }

 @media (max-width: 768px) {
     .main-container {
         padding: 0 1rem;
     }

     .blog-post {
         padding: 2rem 1.5rem;
     }

     .post-title {
         font-size: 2rem;
     }

     .post-meta {
         flex-direction: column;
         align-items: flex-start;
         gap: 0.5rem;
     }

     .nav-content {
         padding: 0 1rem;
     }

     .breadcrumb {
         display: none;
     }

     .cta-box {
         padding: 1.25rem 1rem;
     }

     .cta-box h3 {
         font-size: 1.2rem;
     }

     .table-of-contents {
         position: static;
     }

     .share-buttons {
         justify-content: center;
     }

     .share-btn {
         min-width: 80px;
         padding: 0.5rem 0.75rem;
         font-size: 0.8rem;
     }
 }