/* =========================================================================
   PURSHVEDA - STANDALONE BLOG & FORM STYLES
========================================================================= */
:root {
    --pv: #e61d4f;
    --navy: #111c24;
    --muted: #64748b;
    --light: #f8fafc;
}
h1 {
  font-size: 28px;
  font-weight:700;
}
h2 {
  font-size: 25px;
  /*font-weight:700;*/
}
h3{
    font-size:20px;
}
body { font-family: 'Poppins', sans-serif; color: #334155; }

/* --- 1. Header & Nav --- */
.pv-header, .pv-mheader {
    position: sticky !important; top: 0 !important; z-index: 1030 !important;
    background: #fff !important; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.blog-thumb-img {
    width: 100% !important;
    height: auto !important;
    max-height: 550px !important; /* Height bounds locked to prevent over-stretching */
    overflow: hidden !important;
    border-radius: 12px !important;
    margin-bottom: 25px !important;
    display: block !important;
}

.blog-thumb-img img {
    width: 100% !important;      /* Forces image to stretch across the full width */
    height: 100% !important;
    max-height: 550px !important;
    display: block !important;
    object-fit: fill !important;  /* ਇਹ image ਨੂੰ ਬਿਨਾਂ ਕੱਟੇ ਖੱਬੇ ਤੋਂ ਸੱਜੇ ਪੂਰਾ ਫਿਟ (Stretch) ਕਰੇਗਾ */
}

/* --- 2. Blog Content (Backend Data Fix) --- */
.blog-details { padding: 0 0; }
.blog-details h1, .blog-details h2, .blog-details h3 { color: var(--navy); margin: 0.5rem 0 1rem; }
.blog-details p { font-size: 1.05rem; line-height: 1.8; color: var(--muted); margin-bottom: 0.5rem; }

.blog-details ul, .blog-details ol {
    display: block !important;
    list-style: disc inside !important;
    padding-left: 20px !important;
    margin: 15px 0 20px 0 !important;
}

.blog-details li {
    display: list-item !important;
    margin-bottom: 8px !important;
    font-size: 1rem;
}

.blog-details table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.blog-details table th, .blog-details table td { border: 1px solid #e2e8f0; padding: 12px; }

/* --- 3. Comments Section & Form --- */
.blog-comments { margin-top: 40px; padding-top: 30px; border-top: 2px solid var(--light); }
.blog-comments-item { display: flex; gap: 15px; margin-bottom: 25px; padding: 15px; background: var(--light); border-radius: 12px; }
.blog-comments-content h5 { margin-bottom: 5px; color: var(--navy); }

.blog-comments-form { margin-top: 40px; margin-bottom:20px; }
.form-group { margin-bottom: 20px; }
.form-control {
    width: 100%; padding: 12px 15px; border: 1px solid #cbd5e1;
    border-radius: 8px; font-size: 0.95rem;
}
.theme-btn {
    background: var(--pv); color: #fff; padding: 12px 25px;
    border: none; border-radius: 8px; font-weight: 600; cursor: pointer;
    transition: 0.3s;
}
.theme-btn:hover { background: #c2133f; }
.blog-meta-left ul {
    display: flex !important;           
    flex-direction: row !important; 
    list-style: none !important;        
    padding: 0 !important;          
    margin: 0 !important;
    gap: 20px !important;       
}

.blog-meta-left ul li {
    display: inline-block !important;   
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.9rem !important;
    color: var(--muted);
}

.blog-meta-left ul li i {
    margin-right: 8px !important;       
}

/* --- 4. Mobile Menu Fix --- */
@media (max-width: 991px) {
    .pv-mheader .dropdown-menu-end { right: 0 !important; left: auto !important; }
}

/* =========================================================================
    STICKY NAVBAR BOUNDARIES
========================================================================= */
.pv-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1030 !important;
  background: #ffffff !important;
  box-shadow: 0 2px 14px rgba(17, 28, 36, .06) !important;
}

.pv-mheader {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1030 !important;
  background: var(--navy) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06) !important;
}

/* =========================================================================
    USER DASHBOARD DROPDOWN CONTEXTS
========================================================================= */
.user-dropdown {
  position: relative;
}

.pv-user-btn {
  background: var(--pv-soft) !important;
  color: var(--navy) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 999px !important;
  padding: .35rem .8rem !important;
  font-weight: 600;
  transition: all .2s ease-in-out;
  box-shadow: none !important;
}

.pv-user-btn::after {
  display: none !important; 
}

.pv-user-btn:hover {
  background: #edf2f7 !important;
  border-color: #cbd5e1 !important;
}

.d-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pv);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.d-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.d-user-info strong {
  font-size: 0.85rem;
  color: var(--navy);
}

.d-user-info small {
  font-size: 0.7rem;
  color: #64748b;
}

.d-avatar-large {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pv);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}

.dropdown-menu-end .dropdown-item {
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.dropdown-menu-end .dropdown-item:hover {
  background-color: var(--pv-soft) !important;
  color: var(--pv) !important;
}

.dropdown-menu-end .dropdown-item:hover i {
  color: var(--pv) !important;
}

.dropdown-menu-end .dropdown-item.text-danger:hover {
  background-color: #fef2f2 !important;
  color: #dc2626 !important;
}

.dropdown-menu-end .dropdown-item.text-danger:hover i {
  color: #dc2626 !important;
}

.m-user-link.text-danger:hover {
  background: rgba(220, 38, 38, 0.08) !important;
  color: #dc2626 !important;
}
/* =========================================================================
    STICKY NAVBAR BOUNDARIES
========================================================================= */
.pv-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1030 !important;
  background: #ffffff !important;
  box-shadow: 0 2px 14px rgba(17, 28, 36, .06) !important;
}

.pv-mheader {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1030 !important;
  background: var(--navy) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06) !important;
}

/* =========================================================================
    USER DASHBOARD DROPDOWN CONTEXTS
========================================================================= */
.user-dropdown {
  position: relative;
}

.pv-user-btn {
  background: var(--pv-soft) !important;
  color: var(--navy) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 999px !important;
  padding: .35rem .8rem !important;
  font-weight: 600;
  transition: all .2s ease-in-out;
  box-shadow: none !important;
}

.pv-user-btn::after {
  display: none !important; 
}

.pv-user-btn:hover {
  background: #edf2f7 !important;
  border-color: #cbd5e1 !important;
}

.d-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pv);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.d-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.d-user-info strong {
  font-size: 0.85rem;
  color: var(--navy);
}

.d-user-info small {
  font-size: 0.7rem;
  color: #64748b;
}

.d-avatar-large {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pv);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}

.dropdown-menu-end .dropdown-item {
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.dropdown-menu-end .dropdown-item:hover {
  background-color: var(--pv-soft) !important;
  color: var(--pv) !important;
}

.dropdown-menu-end .dropdown-item:hover i {
  color: var(--pv) !important;
}

.dropdown-menu-end .dropdown-item.text-danger:hover {
  background-color: #fef2f2 !important;
  color: #dc2626 !important;
}

.dropdown-menu-end .dropdown-item.text-danger:hover i {
  color: #dc2626 !important;
}

.m-user-link.text-danger:hover {
  background: rgba(220, 38, 38, 0.08) !important;
  color: #dc2626 !important;
}