/*
Theme Name: Sampoorna Jeevan
Theme URI: https://www.sjvadodara.co.in/
Description: Custom theme for Sampoorna Jeevan, Vadodara, converted from the original static website. The main stylesheet lives in assets/css/style.css.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sampoorna-jeevan
*/

/* WordPress-specific adjustments (the original template styles are in assets/css/style.css) */

body.admin-bar #header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar #header {
    top: 46px;
  }
}

/* The site name is a <div> on inner pages and an <h1> on the home page. */
div.logo {
  display: block;
  font-family: sans-serif, "Raleway";
}

#header .custom-logo-link img {
  max-height: 83px;
  width: auto;
}

.footer-links ul li i {
  margin-right: 2px;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.alignleft {
  float: left;
  margin: 0 1.5em 1em 0;
}

.alignright {
  float: right;
  margin: 0 0 1em 1.5em;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.contact .php-email-form .hp-field {
  position: absolute;
  left: -9999px;
}

.sj-pagination {
  margin-top: 30px;
}

.sj-post {
  margin-bottom: 40px;
}

/* ------------------------------------------------------------------
 * Elementor
 * ---------------------------------------------------------------- */

/* Lists typed in the "SJ Text Section" editor get the red chevron bullets. */
.sj-chevron-list .content ul li::before {
  content: "\e9b2";
  font-family: 'boxicons';
  position: absolute;
  left: 0;
  top: 7px;
  font-size: 20px;
  line-height: 1;
  color: #d9232d;
}

/* Lists that already contain an <i> icon don't need a second one. */
.sj-chevron-list .content ul li:has(> i)::before {
  content: none;
}

/* Theme widgets bring their own spacing; Elementor shouldn't add more. */
.elementor-widget[class*="elementor-widget-sj-"] > .elementor-widget-container {
  margin: 0;
  padding: 0;
}

/* Inside the Elementor editor, show animated sections immediately. */
.elementor-editor-active [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/* ------------------------------------------------------------------
 * Blog / articles
 * ---------------------------------------------------------------- */

.sj-blog {
  padding: 50px 0 70px;
}

/* Toolbar: category filter + search */
.sj-blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 35px;
}

.sj-cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sj-cat-filter a {
  padding: 6px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  color: #556270;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  transition: 0.3s;
}

.sj-cat-filter a:hover,
.sj-cat-filter a.active {
  background: #d9232d;
  border-color: #d9232d;
  color: #fff;
}

.sj-search-form {
  display: flex;
  margin-left: auto;
  min-width: 260px;
}

.sj-sidebar .sj-search-form {
  margin-left: 0;
  min-width: 0;
}

.sj-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  outline: none;
}

.sj-search-form input[type="search"]:focus {
  border-color: #d9232d;
}

.sj-search-form button {
  padding: 0 14px;
  border: 0;
  border-radius: 0 4px 4px 0;
  background: #d9232d;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  transition: 0.3s;
}

.sj-search-form button:hover {
  background: #e24d55;
}

.sj-term-description {
  margin: -15px 0 30px;
  color: #666;
}

/* Article cards */
.sj-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0px 2px 15px rgba(85, 98, 112, 0.1);
  transition: 0.5s ease all;
}

.sj-card:hover {
  box-shadow: 0px 2px 15px rgba(85, 98, 112, 0.35);
}

.sj-card-img {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #F5E383;
}

.sj-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.sj-card:hover .sj-card-img img {
  transform: scale(1.05);
}

.sj-card-img .sj-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.sj-card-img .sj-card-placeholder img {
  width: auto;
  height: auto;
  opacity: 0.85;
}

.sj-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
}

.sj-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #888;
}

.sj-meta a {
  color: #888;
}

.sj-meta a:hover {
  color: #d9232d;
}

.sj-meta i {
  color: #d9232d;
  vertical-align: -1px;
}

.sj-card-title {
  margin: 0 0 10px;
  font-family: "Poppins", sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}

.sj-card-title a {
  color: #556270;
}

.sj-card-title a:hover {
  color: #d9232d;
}

.sj-card-excerpt {
  flex: 1;
  font-size: 14px;
  color: #666;
}

.sj-card-excerpt p {
  margin-bottom: 15px;
}

.sj-read-more {
  align-self: flex-start;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.sj-read-more i {
  vertical-align: -2px;
  transition: 0.3s;
}

.sj-read-more:hover i {
  transform: translateX(4px);
}

.sj-btn-outline {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid #d9232d;
  border-radius: 4px;
  color: #d9232d;
  font-family: "Poppins", sans-serif;
  letter-spacing: 1px;
  transition: 0.4s;
}

.sj-btn-outline:hover {
  background: #d9232d;
  color: #fff;
}

.sj-empty {
  padding: 60px 0;
}

.sj-empty h4 {
  color: #556270;
  margin-bottom: 15px;
}

/* Pagination */
.sj-pagination {
  margin-top: 20px;
}

.sj-pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sj-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  color: #556270;
  font-family: "Poppins", sans-serif;
}

.sj-pagination .page-numbers.current,
.sj-pagination a.page-numbers:hover {
  background: #d9232d;
  border-color: #d9232d;
  color: #fff;
}

/* Single article */
.sj-article-meta {
  margin-bottom: 20px;
  font-size: 14px;
}

.sj-article-image {
  margin: 0 0 30px;
}

.sj-article-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0px 2px 15px rgba(85, 98, 112, 0.2);
}

.sj-article-image figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: #888;
  text-align: center;
}

.sj-article .entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.sj-article .entry-content > * {
  margin-bottom: 1.2em;
}

.sj-article .entry-content h2,
.sj-article .entry-content h3,
.sj-article .entry-content h4 {
  margin: 1.6em 0 0.6em;
  color: #d9232d;
  line-height: 1.35;
}

.sj-article .entry-content h2 {
  font-size: 26px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}

.sj-article .entry-content h3 {
  font-size: 22px;
}

.sj-article .entry-content h4 {
  font-size: 19px;
  color: #556270;
}

.sj-article .entry-content blockquote {
  margin: 1.5em 0;
  padding: 18px 24px;
  border-left: 4px solid #d9232d;
  background: #fdf7e0;
  font-style: italic;
  color: #555;
}

.sj-article .entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.sj-article .entry-content ul,
.sj-article .entry-content ol {
  padding-left: 1.4em;
}

.sj-article .entry-content li {
  margin-bottom: 0.4em;
}

.sj-article .entry-content img {
  border-radius: 4px;
}

.sj-article .entry-content figure figcaption {
  font-size: 13px;
  color: #888;
  text-align: center;
}

.sj-article .entry-content a {
  text-decoration: underline;
}

.sj-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 30px 0 0;
}

.sj-tags i {
  color: #d9232d;
  font-size: 20px;
}

.sj-tags a {
  padding: 3px 12px;
  background: #f4f4f4;
  border-radius: 3px;
  font-size: 13px;
  color: #556270;
}

.sj-tags a:hover {
  background: #d9232d;
  color: #fff;
}

.sj-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 25px 0;
  padding: 15px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.sj-share span {
  margin-right: 6px;
  font-family: "Poppins", sans-serif;
  color: #556270;
}

.sj-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  font-size: 19px;
  transition: 0.3s;
}

.sj-share a:hover {
  color: #fff;
  opacity: 0.85;
  transform: translateY(-2px);
}

.sj-share-whatsapp { background: #25d366; }
.sj-share-facebook { background: #1877f2; }
.sj-share-twitter { background: #111; }
.sj-share-email { background: #556270; }

.sj-post-nav .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.sj-post-nav .nav-next {
  margin-left: auto;
  text-align: right;
}

.sj-post-nav a {
  display: block;
  max-width: 320px;
}

.sj-post-nav .sj-nav-label {
  display: block;
  font-size: 13px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sj-post-nav .sj-nav-title {
  display: block;
  font-family: "Poppins", sans-serif;
  color: #556270;
  font-weight: 500;
}

.sj-post-nav a:hover .sj-nav-title {
  color: #d9232d;
}

/* Sidebar */
.sj-sidebar {
  position: sticky;
  top: 140px;
}

.sj-widget {
  margin-bottom: 30px;
  padding: 22px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0px 2px 15px rgba(85, 98, 112, 0.08);
}

.sj-widget-title {
  margin: 0 0 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  font-size: 20px;
  color: #d9232d;
}

.sj-widget-list,
.sj-recent {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sj-widget-list li {
  padding: 6px 0;
}

.sj-widget-list a {
  color: #556270;
}

.sj-widget-list a:hover {
  color: #d9232d;
}

.sj-widget-list i {
  color: #d9232d;
  vertical-align: -2px;
}

.sj-widget-list span {
  color: #999;
  font-size: 13px;
}

.sj-recent li {
  padding: 10px 0;
  border-bottom: 1px dashed #e5e5e5;
}

.sj-recent li:last-child {
  border-bottom: 0;
}

.sj-recent a {
  display: block;
  color: #556270;
  font-weight: 600;
  line-height: 1.4;
}

.sj-recent a:hover {
  color: #d9232d;
}

.sj-recent time {
  font-size: 12px;
  color: #999;
}

.sj-widget-join p {
  font-size: 14px;
}

.sj-related {
  margin-top: 60px;
}

@media (max-width: 991px) {
  .sj-sidebar {
    position: static;
    margin-top: 40px;
  }
}

@media (max-width: 575px) {
  .sj-search-form {
    min-width: 100%;
  }
  .sj-post-nav .nav-links {
    flex-direction: column;
  }
}

.sj-widget-join .join a {
  font-size: 1em;
  letter-spacing: 1px;
  text-align: center;
}

/* Long article titles: let the title bar wrap instead of squeezing the breadcrumbs. */
.single-post .breadcrumbs .d-flex {
  flex-wrap: wrap;
  gap: 8px 30px;
}

.single-post .breadcrumbs h1 {
  flex: 1 1 400px;
  line-height: 1.3;
}
