/*
Theme Name: Advocate Anik & Associates Blog Theme
Theme URI: https://anikandassociates.com/
Author: Antigravity
Author URI: https://anikandassociates.com/
Description: Custom blog theme for Advocate Anik & Associates, replicating the design, header, footer, colors, and fonts of the main website.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anik-blog-theme
*/

/* --- WordPress Standard Alignment Classes --- */
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}
.alignleft {
  float: left;
  margin-right: 20px;
  margin-bottom: 20px;
}
.alignright {
  float: right;
  margin-left: 20px;
  margin-bottom: 20px;
}
.wp-caption {
  background: #fff;
  border: 1px solid #f0f0f0;
  max-width: 96%;
  padding: 5px 3px 10px;
  text-align: center;
}
.wp-caption img {
  margin: 0;
  max-width: 100%;
  height: auto;
}
.wp-caption-text {
  font-size: 14px;
  margin: 5px 0 0;
}

/* --- Custom Blog Theme Layout Adjustments --- */
body.bg-efedea {
  background-color: #efedea !important;
}

.blog-section {
  padding: 80px 0 120px;
}

/* Card overrides to ensure visual alignment */
.single-blog-card {
  background: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
}

.single-blog-card .card-body h3 {
  font-size: 24px;
  line-height: 1.4;
  margin-top: 10px;
  margin-bottom: 15px;
}

.single-blog-card .card-body h3 a {
  color: var(--dark);
}

.single-blog-card .card-body h3 a:hover {
  color: var(--primary);
}

.single-blog-card .card-body p {
  color: var(--paragraph);
  font-size: 15px;
  line-height: 1.6;
}

.single-blog-card .card-body .meta-info {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 14px;
  color: #777;
}

.single-blog-card .card-body .meta-info li {
  display: flex;
  align-items: center;
  gap: 5px;
}

.single-blog-card .card-body .meta-info li i {
  color: var(--primary);
}

/* Sidebar styling overrides */
.sidebar-widget {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.sidebar-widget .widget-title {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.sidebar-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-widget ul li {
  padding: 10px 0;
  border-bottom: 1px solid #f2f2f2;
}

.sidebar-widget ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-widget ul li a {
  color: var(--dark);
  font-weight: 500;
  transition: var(--transition);
}

.sidebar-widget ul li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

/* Custom Search Box inside sidebar */
.sidebar-widget .search-form {
  position: relative;
}

.sidebar-widget .search-form .form-control {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  padding-right: 60px;
}

.sidebar-widget .search-form .search-btn {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.sidebar-widget .search-form .search-btn:hover {
  background: var(--brown-color);
}

/* Single Post details overrides */
.blog-details-area {
  padding: 80px 0 120px;
}

.blog-details-content {
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.blog-details-content .post-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 15px;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 15px;
}

.blog-details-content .post-meta li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-details-content .post-meta li i {
  color: var(--primary);
  font-size: 18px;
}

.blog-details-content h1 {
  color: var(--dark) !important;
  font-family: var(--headingFontFamily);
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 25px;
}

.blog-details-content .post-thumbnail-wrapper {
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
}

.blog-details-content .post-thumbnail-wrapper img {
  width: 100%;
  height: auto;
}

.blog-details-content .post-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--paragraph);
}

.blog-details-content .post-body h2,
.blog-details-content .post-body h3,
.blog-details-content .post-body h4 {
  font-family: var(--headingFontFamily);
  color: var(--dark);
  margin-top: 35px;
  margin-bottom: 15px;
  font-weight: 700;
}

.blog-details-content .post-body p {
  margin-bottom: 20px;
}

.blog-details-content .post-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 20px 30px;
  background-color: #faf8f7;
  font-family: var(--headingFontFamily);
  font-style: italic;
  font-size: 20px;
  color: var(--dark);
  margin: 30px 0;
  border-radius: 0 10px 10px 0;
}

.blog-details-content .post-body blockquote p {
  margin-bottom: 0;
}

/* Comments Section Styling */
.comments-area {
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.comments-area .comments-title,
.comments-area .comment-reply-title {
  font-family: var(--headingFontFamily);
  font-size: 24px;
  margin-bottom: 30px;
  font-weight: 700;
  color: var(--dark);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.comment-list .comment {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #f2f2f2;
}

.comment-list .comment:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.comment-body {
  display: flex;
  gap: 20px;
}

.comment-meta .vcard img {
  border-radius: 50%;
  width: 60px;
  height: 60px;
}

.comment-metadata {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

.comment-metadata a {
  color: #777;
}

.comment-content {
  color: var(--paragraph);
  font-size: 15px;
  line-height: 1.6;
}

.comment-content p {
  margin-bottom: 0;
}

.reply {
  margin-top: 10px;
}

.reply a {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

.comment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.comment-form .comment-notes,
.comment-form .comment-form-comment,
.comment-form .comment-form-cookies-consent,
.comment-form .form-submit {
  grid-column: span 2;
}

.comment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  border: 1px solid #e9ecef;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px 20px;
  font-family: inherit;
  transition: var(--transition);
}

.comment-form textarea {
  height: 150px;
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
  outline: none;
}

.comment-form .submit {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 15px 35px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.comment-form .submit:hover {
  background: var(--brown-color);
}

/* Category widget item count badge styling */
.sidebar-widget ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-widget ul li .post-count {
  background: #f0ede9;
  color: var(--primary);
  font-size: 12px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 20px;
}

/* Keep the header background color black by default */
.top-navbar,
.top-navbar .navbar,
.top-navbar #navbar,
.navbar.style-one {
  background-color: #001415 !important;
}

/* --- Advocate Anik Author Card --- */
.prime-legal-author-card {
  display: flex;
  gap: 25px;
  background-color: #faf8f7;
  border: 1px solid rgba(75, 37, 36, 0.1);
  padding: 30px;
  border-radius: 12px;
  margin-top: 40px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.prime-legal-author-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(75, 37, 36, 0.05);
  border-color: rgba(75, 37, 36, 0.25);
}

.prime-legal-author-img {
  flex-shrink: 0;
}

.prime-legal-author-img img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--brown-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.prime-legal-author-content {
  flex-grow: 1;
}

.prime-legal-author-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px dashed rgba(75, 37, 36, 0.15);
  padding-bottom: 8px;
}

.prime-legal-author-name {
  font-family: var(--headingFontFamily), serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.prime-legal-author-name a {
  color: var(--primary) !important;
}

.prime-legal-author-name a:hover {
  color: var(--brown-color) !important;
}

.prime-legal-linkedin {
  color: #0077b5;
  transition: transform 0.2s ease, color 0.2s ease;
}

.prime-legal-linkedin:hover {
  color: var(--primary);
  transform: scale(1.15);
}

.prime-legal-author-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--paragraph);
  margin: 0;
  font-family: var(--pharagraphFontFamily), sans-serif;
}

/* Responsive adjustments for author card */
@media (max-width: 576px) {
  .prime-legal-author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    gap: 15px;
  }
  .prime-legal-author-header {
    flex-direction: column;
    gap: 8px;
    padding-bottom: 12px;
  }
}

/* --- Brand Colors for Social Share Links --- */
.blog-details-content .share-tag {
  justify-content: flex-start !important;
}
.blog-details-content .share-tag .share {
  text-align: start !important;
}
.blog-details-content .share-tag .share li {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px !important;
}
.blog-details-content .share-tag .share li a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
  font-size: 16px !important;
  border-radius: 50% !important;
  border: 1.5px solid transparent !important;
  transition: all 0.3s ease !important;
}

.blog-details-content .share-tag .share li a.share-facebook {
  color: #1877F2 !important;
  background-color: transparent !important;
  border-color: #1877F2 !important;
}
.blog-details-content .share-tag .share li a.share-facebook:hover {
  color: #fff !important;
  background-color: #1877F2 !important;
  border-color: #1877F2 !important;
}

.blog-details-content .share-tag .share li a.share-x {
  color: #000000 !important;
  background-color: transparent !important;
  border-color: #000000 !important;
}
.blog-details-content .share-tag .share li a.share-x:hover {
  color: #fff !important;
  background-color: #000000 !important;
  border-color: #000000 !important;
}

.blog-details-content .share-tag .share li a.share-linkedin {
  color: #0A66C2 !important;
  background-color: transparent !important;
  border-color: #0A66C2 !important;
}
.blog-details-content .share-tag .share li a.share-linkedin:hover {
  color: #fff !important;
  background-color: #0A66C2 !important;
  border-color: #0A66C2 !important;
}

.blog-details-content .share-tag .share li a.share-pinterest {
  color: #BD081C !important;
  background-color: transparent !important;
  border-color: #BD081C !important;
}
.blog-details-content .share-tag .share li a.share-pinterest:hover {
  color: #fff !important;
  background-color: #BD081C !important;
  border-color: #BD081C !important;
}

.blog-details-content .share-tag .share li a.share-instagram {
  color: #E4405F !important;
  background-color: transparent !important;
  border-color: #E4405F !important;
}
.blog-details-content .share-tag .share li a.share-instagram:hover {
  color: #fff !important;
  background-color: #E4405F !important;
  border-color: #E4405F !important;
}

/* --- Layout Spacer --- */
.spacer {
  height: 100px;
}

/* --- WordPress Pagination Styling --- */
.default-pagination .wp-pagination-wrapper ul.page-numbers {
  display: flex;
  justify-content: center;
  list-style: none;
  padding-left: 0;
  margin: 0;
  flex-wrap: wrap;
  gap: 10px;
}

.default-pagination .wp-pagination-wrapper ul.page-numbers li {
  margin-right: 0;
}

.default-pagination .wp-pagination-wrapper ul.page-numbers li .page-numbers {
  font-weight: 500;
  border: none;
  color: var(--info-color);
  width: 50px;
  height: 50px;
  border-radius: 100%;
  text-align: center;
  transition: var(--transition);
  background-color: rgba(29, 70, 249, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 16px;
}

.default-pagination .wp-pagination-wrapper ul.page-numbers li .page-numbers.current {
  border-color: var(--white);
  color: var(--white) !important;
  background-color: var(--primary);
}

.default-pagination .wp-pagination-wrapper ul.page-numbers li a.page-numbers:hover {
  color: var(--white) !important;
  background-color: var(--primary);
}

.default-pagination .wp-pagination-wrapper ul.page-numbers li .page-numbers i {
  font-size: 20px;
  position: relative;
  top: 0;
  right: 0;
  color: inherit;
  transition: var(--transition);
}

/* --- WordPress Single Post Page Links Styling --- */
.page-links {
  margin-top: 30px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--pharagraphFontFamily), sans-serif;
  font-weight: 600;
}
.page-links a,
.page-links > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 4px;
  background-color: rgba(29, 70, 249, 0.06);
  color: var(--info-color);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}
.page-links > span {
  background-color: var(--primary);
  color: var(--white);
}
.page-links a:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Fix sticky header horizontal overflow and cutoff on scroll */
.navbar.style-one.sticky {
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
}
