/* ==========================
   BLOG HEADER
========================== */

/* Navbar ke niche ka extra gap remove */
.blog-title-section{
    margin-top:0;
    padding-top:0;
}

/* Agar navbar ke baad wrapper hai */
main,
.content,
.page-content{
    margin-top:0;
    padding-top:0;
}



.blog-title-section{
    margin:50px 0 35px;
}

.blog-title-box{
    background:linear-gradient(135deg,#0f172a,#1e293b,#334155);
    border-radius:18px;
    padding:45px 25px;
    text-align:center;
    position:relative;
    overflow:hidden;
    box-shadow:0 15px 35px rgba(0,0,0,.20);
}

.blog-title-box::before{
    content:"";
    position:absolute;
    width:250px;
    height:250px;
    background:rgba(255,255,255,.05);
    border-radius:50%;
    top:-120px;
    left:-80px;
}

.blog-title-box::after{
    content:"";
    position:absolute;
    width:220px;
    height:220px;
    background:rgba(255,255,255,.04);
    border-radius:50%;
    bottom:-120px;
    right:-70px;
}

.blog-tag{
    display:inline-block;
    padding:8px 18px;
    background:#2563eb;
    color:#fff;
    font-size:13px;
    font-weight:600;
    border-radius:30px;
    letter-spacing:1px;
    text-transform:uppercase;
    margin-bottom:18px;
    position:relative;
    z-index:2;
}

.blog-title-box h2{
    color:#fff;
    font-size:42px;
    font-weight:800;
    margin:0;
    position:relative;
    z-index:2;
}

.blog-title-box h2 span{
    color:#38bdf8;
}

.blog-title-box p{
    color:rgba(255,255,255,.85);
    font-size:17px;
    margin-top:15px;
    margin-bottom:0;
    position:relative;
    z-index:2;
    max-width:700px;
    margin-left:auto;
    margin-right:auto;
    line-height:1.7;
}

/* Mobile */

@media(max-width:768px){

    .blog-title-box{
        padding:35px 20px;
        border-radius:14px;
    }

    .blog-title-box h2{
        font-size:28px;
    }

    .blog-title-box p{
        font-size:15px;
    }

    .blog-tag{
        font-size:12px;
        padding:7px 15px;
    }

}




/* ==========================================================
   ExamVibe | BLOG PAGE - Modern Professional Design (v2)
========================================================== */

:root {
  --primary: #007bff;
  --primary-dark: #0056b3;
  --gradient: linear-gradient(135deg, #007bff, #00d4ff);
  --radius: 14px;
  --font: 'Inter', sans-serif;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  --bg: #f8fafc;
  --text: #222;
}

/* ====== GLOBAL ====== */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* ==========================================================
   BLOG LIST PAGE
========================================================== */
.blog-container {
  max-width: 1200px;
  margin: 60px auto;
  display: flex;
  flex-direction: column;
  gap: 35px;
  padding: 0 20px;
  animation: fadeIn 0.8s ease;
}

/* Blog Card */
.blog-card {
  display: flex;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  min-height: 230px;
  position: relative;
}
.blog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.blog-card:hover::before {
  opacity: 0.05;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 123, 255, 0.2);
}

/* Text Side */
.blog-text {
  flex: 2;
  padding: 25px 30px;
  z-index: 2;
  position: relative;
}
/* Blog Title Link */
.blog-title a{
    text-decoration: none !important;
    color: inherit;
}

.blog-title a:hover{
    text-decoration: none !important;
    color: var(--primary-dark);
}

.blog-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  transition: color 0.3s;
}
.blog-card:hover .blog-title {
  color: var(--primary-dark);
}
.blog-date {
  font-size: 14px;
  color: #777;
  margin-bottom: 12px;
}
.blog-desc {
  font-size: 16px;
  color: #555;
  margin-bottom: 18px;
}
.read-more {
  display: inline-block;
  padding: 10px 22px;
  font-weight: 600;
  background: var(--gradient);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.read-more:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Image Side */
.blog-image {
  flex: 1;
  min-width: 250px;
  max-width: 320px;
  overflow: hidden;
}
.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

/* Responsive (Listing) */
@media (max-width: 992px) {
  .blog-card {
    flex-direction: column;
  }
  .blog-image {
    max-height: 250px;
  }
  .blog-text {
    padding: 20px;
  }
}

/* ==========================================================
   BLOG DETAIL PAGE
========================================================== */
:root {
  --primary:#2563eb;
  --primary-dark:#1e40af;
  --text:#111827;
  --radius:12px;
  --shadow:0 6px 20px rgba(0,0,0,0.06);
}

body {
  margin:0;
  font-family:'Segoe UI', Arial, sans-serif;
  background:#f4f6f9;
  color:#111;
}

.blog-container {
  max-width:1200px;
  margin:60px auto;
  padding:0 20px;
}

.blog-content-wrapper {
  display:flex;
  gap:40px;
}

.blog-main { flex:3; }
.blog-sidebar { flex:1; }

.blog-heading-title {
    display: inline-block;
    padding: 15px 30px;
    background: #fff;
    color: #222;
    font-size: 30px;
    font-weight: 700;
    border-left: 5px solid #007bff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
  

.breadcrumb {
  margin-bottom:20px;
  font-size:14px;
}

.breadcrumb a {
  color:var(--primary);
  text-decoration:none;
}

.breadcrumb a::after {
  content:"›";
  margin:0 6px;
}

.blog-detail-title {
  font-size:34px;
  font-weight:800;
}

.blog-meta {
  color:#333;
  margin:10px 0 20px;
}

.blog-detail-image {
  width:100%;
  aspect-ratio:16/9;
  border-radius:var(--radius);
  margin-bottom:20px;
  box-shadow:var(--shadow);
}

.blog-detail-content {
  font-size:17px;
  line-height:1.8;
  color: #333;
}

.blog-detail-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px 50px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    line-height: 1.9;
    font-size: 18px;
    color: #444;
    border-top: 5px solid #007bff;
}

.blog-detail-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 40px 0 15px;
    line-height: 1.3;
}

.blog-detail-content p {
    margin-bottom: 20px;
}

.blog-detail-content img {
    width: 100%;
    border-radius: 15px;
    margin: 25px 0;
}

@media (max-width: 768px) {
    .blog-detail-content {
        padding: 25px;
        margin: 20px 10px;
    }

    .blog-detail-content h2 {
        font-size: 26px;
    }
}

.card-box {
  background:#fff;
  padding:20px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  margin-bottom:20px;
}

@media(max-width:768px){
  .blog-content-wrapper {
    flex-direction:column;
  }
}






/* Sidebar Card */
.card-box {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

/* AUTHOR */
.author-card {
  text-align: center;
}

.author-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.author-card h3 {
  margin: 5px 0;
}

.author-role {
  font-size: 13px;
  color: #777;
}

.author-bio {
  font-size: 14px;
  color: #555;
  margin-top: 10px;
}

/* LATEST BLOGS */
.latest-posts ul {
  list-style: none;
  padding: 0;
}

.latest-posts li {
  margin-bottom: 10px;
}

/* ❌ underline remove */
.latest-posts a {
  text-decoration: none;
  color: #2563eb;
  font-weight: 500;
  transition: 0.3s;
}

/* hover */
.latest-posts a:hover {
  color: #1e40af;
  padding-left: 5px;
}



/* Breadcrumb */
.breadcrumb {
  margin-bottom: 25px;
  font-size: 15px;
  color: #555;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 8px;
}
.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb a::after {
  content: "›";
  color: #999;
  margin: 0 6px;
}
.breadcrumb a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

/* Blog Details */
.blog-detail-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 10px;
}
.blog-detail-date {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}
.blog-detail-image {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
}


/* Sidebar Cards */
.recent-posts, .related-posts {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}
.recent-posts:hover, .related-posts:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 123, 255, 0.15);
}
.recent-posts h3, .related-posts h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  border-bottom: 2px solid #e6e6e6;
  padding-bottom: 8px;
  margin-bottom: 15px;
}
.recent-posts ul, .related-posts ul {
  list-style: none;
  padding: 0;
}
.recent-posts li, .related-posts li {
  margin-bottom: 12px;
}
.recent-posts li a, .related-posts li a {
  color: #444;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.recent-posts li a:hover, .related-posts li a:hover {
  color: var(--primary);
}

/* ===== FAQ Section ===== */
.blog-faq-section {
  margin-top: 60px;
  animation: fadeInUp 1s ease;
}
.blog-faq-section h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--text);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
}








.faq-section {
  margin-top: 40px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.faq-section h2 {
  margin-bottom: 20px;
  font-size: 24px;
}

.faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.faq-question {
  font-size: 18px;
  font-weight: 600;
}

.faq-answer {
  margin-top: 5px;
  color: #555;
}




















/* =========================
   COMMENT FORM FIX CSS
========================= */

.comment-wrapper{
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,.05);
    margin-top: 40px;
}

.comment-form-section{
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,.05);
    max-width: 800px;
    width: 100%;
    margin: 30px auto;
}

.comment-form{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* INPUT FIX */
.comment-form input,
.comment-form textarea{
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

/* TEXTAREA */
.comment-form textarea{
    min-height: 120px;
    resize: vertical;
}

/* BUTTON */
.comment-form button{
    background: #007bff;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.3s;
}

.comment-form button:hover{
    background: #0056b3;
}

/* ❗ IMPORTANT FIX — HIDE HONEYPOT */
.hidden{
    display: none !important;
}

/* Optional better UX */
.comment-title{
    margin-bottom: 15px;
    font-size: 22px;
}




















/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .blog-content-wrapper {
    flex-direction: column;
  }
  .blog-sidebar {
    margin-top: 30px;
  }
}
@media (max-width: 768px) {
  .blog-detail-title {
    font-size: 26px;
  }
  .blog-card {
    flex-direction: column;
  }
  .blog-container {
    margin: 30px auto;
  }
}
