:root {
   
     --logo-color: #00BF62; 
    --primary-color: #0d6efd;
    --primary-border-color: #0a58ca;
       --primary-hover-color: #0b5ed7;
       --primary-hover-border: #0a53be;

    --secondary-color: #f5f5f5;
    --secondary-border-color: #d1d1d1;
    --secondary-hover-color: #e0e0e0;
    --secondary-hover-border: #b5b5b5;

     --secondary: #FFC448;
    --light: #FAFAFB;
    --dark: #12141D;
    
      --badge-blue: #0d6efd;
  --badge-green: #198754;
  --badge-red: #dc3545;
  --badge-orange: #fd7e14;
  --badge-teal: #20c997;
  --badge-purple: #6f42c1;
  --badge-pink: #d63384;

    
}


.badge-blue { background-color: var(--badge-blue); color: #fff; }
.badge-green { background-color: var(--badge-green); color: #fff; }
.badge-red { background-color: var(--badge-red); color: #fff; }
.badge-orange { background-color: var(--badge-orange); color: #fff; }
.badge-teal { background-color: var(--badge-teal); color: #fff; }
.badge-purple { background-color: var(--badge-purple); color: #fff; }
.badge-pink { background-color: var(--badge-pink); color: #fff; }


/* ===== Global Loader ===== */
#global-loader {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Page body padding */
body { padding-top: 50px; }

.main-h1-title { margin-top: 12px; }

/* Make sidebar scroll only on large screens */
@media (max-width: 991px) {
  .sidebar {
    position: relative;
    max-height: none;
    overflow: visible;
    top: auto;
    padding-right: 0;
  }
}

/* Navbar category styling */
#category-nav .nav-link {
  margin: 0 10px;
  transition: color 0.3s ease;
  border-bottom: none !important;
}
#category-nav .nav-link.active { font-weight: 600; }

/* Blog header & content */
.blog-header img { width: 100%; max-height: 400px; object-fit: contain; border-radius: 12px; }
.blog-meta { color: #6c757d; font-size: 0.9rem; margin-bottom: 15px; }
.category-badge { margin-right: 5px; margin-bottom: 5px; padding-top: 5px; padding-bottom: 6px;}
.content p { line-height: 1.7; }
.content img { max-width: 100%; border-radius: 8px; margin: 15px 0; }

/* Code blocks */
/* pre {
  position: relative;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  font-size: 0.8rem;
  background: #0d6efd;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.copy-btn:hover { opacity: 1; } */

/* Sidebar */
.sidebar {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 10px;
}
.sidebar h5 { font-weight: 600; margin-bottom: 15px; }
.sidebar ul { padding-left: 0; list-style: none; }
.sidebar ul li { margin-bottom: 8px; }
.sidebar ul li a { text-decoration: none; color: #0d6efd; font-size: 0.95rem; }
.sidebar ul li a:hover { text-decoration: underline; }

/* Related posts */
.related-title { margin: 40px 0 20px; font-weight: 600; }
.related-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s;
  text-decoration: none;
  color: inherit;
}
.related-card:hover { transform: translateY(-6px); }
.related-card img { width: 100%; height: 200px; object-fit: contain; }

/* Fix content images */
.content img, .blog-header img { max-width: 100%; height: auto; }





/*post content start*/
.containerOutput {
  max-width: 100%;
  margin: 20px auto;
}


hr{
  width: 60%;
 margin: 30px auto 30px auto; 
}




.shortsHeading {
 width: 100%;
 max-width: 360px;
  margin-bottom: 10px !important;
  text-align: center;
    margin: 0 auto; 
}


.normalHeading {
    width: 100%;
  max-width: 520px; 
  margin-bottom: 10px !important;
  text-align: left;
    margin: 0 auto; 
}




.shortsView {
  position: relative;
/*  width: 100%;*/
 max-width: 360px;   /* limit width on desktop */
  max-height: 50vh;  
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;     /* center horizontally */
}



.shortsIframe {
  position: absolute;
   inset: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
   border: 0;
}


/* ✅ Normal YouTube videos (16:9) */
.normalView {
  position: relative;
  width: 100%;
  max-width: 520px;     
  aspect-ratio: 16 / 9; 
  max-height: 78vh;     
  overflow: hidden;
  border-radius: 12px;
  margin: 0 auto;
  background: #000;
}

.normalIframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}




/* mobile adjustments */
@media (max-width: 768px) {
  .shortsView {
    max-width: 100%;   /* full width */
      max-height: 60vh; 
   /* max-height: none;*/  /* let aspect-ratio handle height */
  }
  .normalView {
    max-width: 100%;   /* full width */
    max-height: none;  /* let aspect-ratio handle height */
  }
}



.code-block {
  position: relative;
  margin-bottom: 1.5rem;
}



.code-block pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 8px;
  background: #2d2d2d; /* prism-tomorrow background */
  color: #f8f8f2;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px; /* change to left:8px if you want */
  background: #3198F7;
  color: #fff;
  border: none;
  padding: 4px 10px 6px 10px;
  font-size: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.copy-btn:hover {
  background: #2177c7;
}



.navbar-toggler {
  border-color: #0d6efd;
}

.navbar-toggler:focus,
.navbar-toggler:active {
  border-color: var(--primary-border-color)
}


/* Hide the 3rd related post on mobile/tablet */
@media (max-width: 991px) {   /* up to md & sm */
  .related-wrapper .col-6:nth-child(3) {
    display: none !important;
  }
}


.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* circle */
}




/*affliate*/

.ali-carousel {
  max-width: 600px;
  margin: 0 auto;
}
.ali-image {
  border-radius: 12px;
  object-fit: cover;
  height: 350px;
}
.carousel-indicators [data-bs-target] {
  background-color: #000;
}
.ali-loader {
  color: #666;
}
@media (max-width: 768px) {
  .ali-image {
    height: 240px;
  }
}


