/* ========== Blog Post Card ========== */
.post {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    background: #fff;
  }
  
  .post img {
    width: 250px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
  }
  
  .post-content {
    flex: 1;
  }
  
  .post-content h2 {
    margin-top: 0;
    font-size: 1.5rem;
  }
  
  .post-content .meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
  }
  
  /* ========== Blog Navigation ========== */
  .blog-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: #fff;
    padding: 1rem 2rem;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    text-align: center;
  }
  
  .blog-nav a {
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.2s;
    border: 1px solid transparent;
  }
  
  .blog-nav a:hover,
  .blog-nav a.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
  }
  
  /* ========== Blog Filter/Search Form ========== */
  .blog-filter-form,
  .search-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: 1rem 2rem;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    gap: 1rem;
    max-width: 600px;
  }
  
  .blog-filter-form label {
    font-weight: bold;
  }
  
  .blog-filter-form select,
  .blog-filter-form input[type="text"],
  .search-form input[type="text"] {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  .blog-filter-form button,
  .search-form button {
    padding: 0.5rem 1rem;
    background: #28a745;
    border: none;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .blog-filter-form button:hover {
    background: #218838;
  }
  
  .search-form button {
    background: #007bff;
  }
  
  .search-form button:hover {
    background: #0056b3;
  }
  
  /* ========== Post List & Card Layout ========== */
  .post-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    gap: 1rem;
  }
  
  .post-image img {
    width: 140px;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
  }
  
  .post-details {
    flex: 1;
  }
  
  .post-details p {
    margin: 0.3rem 0;
  }
  
  .post-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
  }
  
  /* ========== Status & Badges ========== */
  .status-green {
    color: #28a745;
    font-weight: bold;
  }
  
  .status-red {
    color: #dc3545;
    font-weight: bold;
  }
  
  .status-green small,
  .status-red small {
    display: block;
    font-weight: normal;
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
  }
  
  .read-time-pill {
    background: #e0e0e0;
    border-radius: 50px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 0.5rem;
    margin-left: 0.5rem;
  }
  
  .badge-published {
    background-color: #28a745;
    color: white;
  }
  
  .badge-draft {
    background-color: #ffc107;
    color: black;
  }
  
  /* ========== Misc ========== */
  label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
  }
  
  input[type="text"],
  input[type="file"],
  textarea,
  select {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.25rem;
    border-radius: 5px;
    border: 1px solid #ccc;
  }
  
  .danger {
    background: #dc3545;
  }
  
  .danger:hover {
    background: #b52a37;
  }
  
  .view-content-button {
    display: inline-block;
    background: #007bff;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    cursor: pointer;
    margin-left: 5px;
    font-size: 18px;
    text-decoration: none;
  }
  
  .view-content-button:hover {
    background: #0056b3;
  }
  
  small {
    color: #666;
  }
  
  /* ========== Responsive ========== */
  @media (max-width: 768px) {
    .post {
      flex-direction: column;
    }
  
    .post img {
      width: 100%;
      height: auto;
    }
  
    .blog-filter-form {
      flex-direction: column;
      align-items: stretch;
    }
  }

.post-header img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 1rem;
}

.post-content {
    font-size: 1.1em;
    line-height: 1.6;
}

/* BACK LINK BUTTON */
.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    background: #444;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
}

/* SHARE BAR + BUTTONS */
.share-bar {
    margin-top: 2rem;
    text-align: center;
    position: relative;
}

.share-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    background: none;
    padding: 0;
    color: #333;
}

.share-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    max-height: 0;
    overflow: visible;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
}

.share-buttons.show {
    opacity: 1;
    max-height: 200px;
    transform: translateY(0);
}

.share-icon {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    font-size: 1.8rem;
    transition: transform 0.2s;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.share-icon:hover {
    transform: scale(1.2);
}

.share-icon::after {
    content: attr(title);
    position: absolute;
    top: 100%;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: #333;
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease-in-out;
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10;
}

.share-icon:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.share-icon.shared::after {
    content: '✔';
    position: absolute;
    top: -6px;
    right: -6px;
    background: green;
    color: white;
    font-size: 0.6em;
    border-radius: 50%;
    padding: 2px 4px;
}

/* PLATFORM COLOURS */
#facebook-share { color: #3b5998; }
#twitter-share  { color: #1da1f2; }
#linkedin-share { color: #0077b5; }
#whatsapp-share { color: #25d366; }
#copy-share     { color: #555; }

/* MOBILE-FRIENDLY TOOLTIP FALLBACK */
@media (hover: none) {
    .share-icon::after {
        opacity: 1;
        transform: translateY(0);
        position: static;
        display: block;
        margin-top: 0.3rem;
        background: none;
        padding: 0;
        box-shadow: none;
    }
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 600px) {
    .post-content {
        font-size: 1rem;
    }

    .post-header h1 {
        font-size: 1.5rem;
    }

    .share-icon {
        font-size: 1.6rem;
    }

    .meta {
        font-size: 0.85em;
    }
}
.related-posts {
    margin-top: 3rem;
}

.related-posts h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    text-align: center;
}

.related-posts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.related-post-card {
    display: flex;
    flex-direction: column;
    width: 220px;
    text-align: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.related-post-card:hover {
    transform: translateY(-3px);
}

.related-post-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.related-post-card span {
    padding: 1rem;
    font-weight: bold;
    font-size: 1rem;
}
.post-header img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 1rem;
}

.post-content {
    font-size: 1.1em;
    line-height: 1.6;
}

/* BACK LINK BUTTON */
.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    background: #444;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
}

/* SHARE BAR + BUTTONS */
.share-bar {
    margin-top: 2rem;
    text-align: center;
    position: relative;
}

.share-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    background: none;
    padding: 0;
    color: #333;
}

.share-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    max-height: 0;
    overflow: visible;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
}

.share-buttons.show {
    opacity: 1;
    max-height: 200px;
    transform: translateY(0);
}

.share-icon {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    font-size: 1.8rem;
    transition: transform 0.2s;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.share-icon:hover {
    transform: scale(1.2);
}

.share-icon::after {
    content: attr(title);
    position: absolute;
    top: 100%;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: #333;
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease-in-out;
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10;
}

.share-icon:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.share-icon.shared::after {
    content: '✔';
    position: absolute;
    top: -6px;
    right: -6px;
    background: green;
    color: white;
    font-size: 0.6em;
    border-radius: 50%;
    padding: 2px 4px;
}

/* PLATFORM COLOURS */
#facebook-share { color: #3b5998; }
#twitter-share  { color: #1da1f2; }
#linkedin-share { color: #0077b5; }
#whatsapp-share { color: #25d366; }
#copy-share     { color: #555; }

/* MOBILE-FRIENDLY TOOLTIP FALLBACK */
@media (hover: none) {
    .share-icon::after {
        opacity: 1;
        transform: translateY(0);
        position: static;
        display: block;
        margin-top: 0.3rem;
        background: none;
        padding: 0;
        box-shadow: none;
    }
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 600px) {
    .post-content {
        font-size: 1rem;
    }

    .post-header h1 {
        font-size: 1.5rem;
    }

    .share-icon {
        font-size: 1.6rem;
    }

    .meta {
        font-size: 0.85em;
    }
}
.related-posts {
    margin-top: 3rem;
}

.related-posts h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    text-align: center;
}

.related-posts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.related-post-card {
    display: flex;
    flex-direction: column;
    width: 220px;
    text-align: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.related-post-card:hover {
    transform: translateY(-3px);
}

.related-post-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.related-post-card span {
    padding: 1rem;
    font-weight: bold;
    font-size: 1rem;
}
/* Featured Image – Default */
.featured-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain; /* Resize image without cropping */
  object-position: center; /* Centre the image if it doesn't fill the space */
  border-radius: 10px;
  display: block;
}

/* Responsive override */
@media (max-width: 768px) {
  .featured-image {
    max-height: 250px;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
  }
}
  @import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');

  .compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e0e0e0;
  }

  .compare-table thead th {
    background-color: #f5f5f5;
    font-weight: 600;
    font-size: 1.1rem;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    color: #24678d;
  }
  .compare-table td b {
    color: #24678d;
  }

  .compare-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
  }

  .compare-table tbody tr:hover {
    background-color: #f0f8ff;
  }

  @media screen and (max-width: 600px) {
    .compare-table,
    .compare-table thead,
    .compare-table tbody,
    .compare-table th,
    .compare-table td,
    .compare-table tr {
      display: block;
    }

    .compare-table thead tr {
      display: none;
    }

    .compare-table td {
      position: relative;
      padding-left: 50%;
      border: none;
      border-bottom: 1px solid #ddd;
    }

    .compare-table td::before {
      position: absolute;
      top: 12px;
      left: 16px;
      width: 45%;
      white-space: nowrap;
      font-weight: bold;
      color: #24678d;
      content: attr(data-label);
    }

    .compare-table tr {
      margin-bottom: 1rem;
    }
  }
.blog-quotes-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 3rem 0;
    padding: 0 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-quote {
    background-color: #f9f9f9;
    border-left: 4px solid #ffc107; /* warm yellow accent */
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: background-color 0.3s ease;
}

.blog-quote:hover {
    background-color: #fffdf5;
}

.blog-quote q {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    quotes: "“" "”" "‘" "’";
}

.blog-quote q::before {
    content: open-quote;
}

.blog-quote q::after {
    content: close-quote;
}

.blog-quote small {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.blog-quote p {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin: 0;
}
    .celeb-picture {
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
}

.celeb-picture img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2; /* Optional: forces consistent image shape */
  object-fit: cover;    /* Ensures cropping without distortion */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.celeb-picture figcaption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
  font-style: italic;
}
.correct-tick {
  color: green;
  font-size: 5em;
  display: block;
  text-align: center;
  margin: 1rem auto;
}
.done-right-section {
    text-align: center;

}
.done-wrong-section {
  text-align: center;
  margin: 3rem auto 2rem;
  padding: 1rem;
}

.wrong-cross {
  color: #cc0000; /* deep red */
  font-size: 5em;
  display: block;
  margin-bottom: 0.5rem;
}
.middle-icon {
  color: #e67e22; /* warm orange for a 'caution' tone */
  font-size: 5em;
  display: block;
  text-align: center;
  margin-bottom: 0.5rem;
}
.done-middle-section {
  text-align: center;
  margin: 3rem auto 2rem;
  padding: 1rem;
}
    .blog-picture {
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
}

.blog-picture img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2; /* Optional: forces consistent image shape */
  object-fit: cover;    /* Ensures cropping without distortion */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.blog-picture figcaption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
  font-style: italic;
}
  /* General quote box styling */
.phone-helpline-quote {
  position: relative;
  background: #f1f9ff;
  border-left: 4px solid #0077cc;
  padding: 1.2em 1em 1em 3em;
  margin: 1.5em 0;
  font-style: italic;
  border-radius: 8px;
  font-size: 1rem;
  color: #222;
}

/* Add the Font Awesome phone icon using a pseudo-element */
.phone-helpline-quote::before {
  content: "\f095"; /* Font Awesome 'phone' icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 1em;
  top: 1em;
  font-size: 1.2rem;
  color: #0077cc;
}

/* Style <q> tags inside the quote box */
.phone-helpline-quote q {
  quotes: "“" "”" "‘" "’";
  display: inline-block;
  margin: 0.2em 0;
}

.phone-helpline-quote q::before {
  content: open-quote;
  margin-right: 0.1em;
}

.phone-helpline-quote q::after {
  content: close-quote;
  margin-left: 0.1em;
}

/* Optional: quote list styling */
.helpline-ul {
  list-style: none;
  padding: 0;
  margin: 0.5em 0 0 0;
}

.helpline-ul li {
  margin: 0.4em 0;
  padding-left: 1em;
  position: relative;
}
.text-helpline-quote {
  position: relative;
  background: #dcf8c6; /* WhatsApp-style light green */
  border: 1px solid #b2e59e;
  border-radius: 20px;
  padding: 1em 1.2em 1em 2.5em;
  margin: 1.2em 0;
  font-size: 1rem;
  font-style: normal;
  color: #222;
  max-width: 500px;
  line-height: 1.5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Phone icon as a "sender avatar" style */
.text-helpline-quote::before {
  content: "\f075"; /* Font Awesome phone icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0.8em;
  top: 0.9em;
  font-size: 1rem;
  color: #4caf50; /* Friendly green */
}

/* Optional: style quote tags nicely */
.text-helpline-quote q {
  quotes: "“" "”";
  display: inline;
}

.text-helpline-quote q::before {
  content: open-quote;
}

.text-helpline-quote q::after {
  content: close-quote;
}
  .personal-story-quote {
  background-color: #f9f9f9;
  border-left: 4px solid #b0c4de; /* soft blue-grey */
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  position: relative;
  border-radius: 6px;
}
.personal-story-quote q {
  quotes: "“" "”" "‘" "’";
  display: inline;
}
.personal-story-quote q::before {
  content: open-quote;
}
.personal-story-quote q::after {
  content: close-quote;
}
.blog-video {
  position: relative;
  width: 100%;          /* Take full width of container */
  max-width: 900px;     /* Optional: cap it so it doesn’t get huge on desktops */
  margin: 2em auto;     /* Center it with some spacing */
  aspect-ratio: 16/9;   /* Keeps correct video ratio on resize */
}
.blog-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;   /* Optional: rounded corners */
}