/* ==========================================================================
   DHRUV REMEDIES - CUSTOM BLOG STYLESHEET
   File: blog/css/custom-blog.css
   ========================================================================== */

:root {
  --blog-teal-950: #022422;
  --blog-teal-900: #043835;
  --blog-teal-800: #085752;
  --blog-teal-700: #0b6b65;
  --blog-teal-600: #0f857e;
  --blog-teal-500: #14a39b;
  --blog-orange-500: #f75f1d;
  --blog-orange-600: #d9480f;
  --blog-slate-900: #0f172a;
  --blog-slate-700: #334155;
  --blog-slate-600: #475569;
  --blog-slate-500: #64748b;
  --blog-slate-200: #e2e8f0;
  --blog-slate-100: #f1f5f9;
  --blog-slate-50: #f8fafc;
}

/* ==========================================================================
   BLOG MAIN GRID / CARDS (index.php)
   ========================================================================== */
.blog-main-section {
  padding: 60px 0 90px;
  background-color: #ffffff;
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--blog-slate-200);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              border-color 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(4, 56, 53, 0.12), 0 8px 10px -6px rgba(4, 56, 53, 0.05);
  border-color: rgba(20, 163, 155, 0.35);
}

.blog-image {
  position: relative;
  overflow: hidden;
  background-color: var(--blog-slate-100);
  aspect-ratio: 16 / 9;
}

.blog-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-image img {
  transform: scale(1.06);
}

.blog-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: var(--blog-slate-500);
  margin-bottom: 12px;
}

.blog-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-meta svg {
  color: var(--blog-orange-500);
  flex-shrink: 0;
}

.blog-title {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 12px;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
}

.blog-title a {
  color: var(--blog-teal-950);
  text-decoration: none;
  transition: color 0.25s ease;
}

.blog-title a:hover {
  color: var(--blog-orange-500);
}

.blog-desc {
  font-size: 14.5px;
  color: var(--blog-slate-600);
  line-height: 1.65;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   BLOG DETAIL PAGE
   ========================================================================== */
.blog-detail-section {
  padding: 60px 0 90px;
  background-color: #ffffff;
}

.blog-featured-media {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--blog-slate-200);
  aspect-ratio: 16 / 9;
}

.blog-featured-media img {
  width: 100%;
  height:auto; 
}

.blog-detail-header {
  margin-bottom: 24px;
}

.blog-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--blog-slate-500);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--blog-slate-200);
  margin-bottom: 24px;
}

.blog-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.blog-detail-meta svg {
  color: var(--blog-orange-500);
}

.blog-detail-article {
  color: var(--blog-slate-700);
  font-size: 16px;
  line-height: 1.8;
}

.blog-detail-article p {
  margin-bottom: 20px;
}

.blog-detail-article h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--blog-teal-950);
  margin-top: 36px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blog-slate-100);
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
}

.blog-detail-article h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blog-teal-900);
  margin-top: 28px;
  margin-bottom: 14px;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
}

.blog-detail-article ul, 
.blog-detail-article ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.blog-detail-article li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.blog-detail-article a {
  color: var(--blog-teal-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.blog-detail-article a:hover {
  color: var(--blog-orange-500);
}

/* Callout Box inside detail page */
.blog-callout-card {
  background: var(--blog-slate-50);
  border-left: 4px solid var(--blog-teal-600);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.blog-callout-card p {
  margin-bottom: 0;
  color: var(--blog-slate-700);
  font-weight: 500;
}

/* ==========================================================================
   FAQ ACCORDION IN BLOG DETAIL
   ========================================================================== */
.blog-faq-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--blog-slate-100);
}

.blog-faq-section .section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blog-teal-950);
  margin-bottom: 22px;
}

.blog-faq-accordion .accordion-item {
  border: 1px solid var(--blog-slate-200);
  border-radius: 10px !important;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.blog-faq-accordion .accordion-header .accordion-button {
  font-size: 16px;
  font-weight: 600;
  color: var(--blog-teal-950);
  background-color: var(--blog-slate-50);
  padding: 16px 20px;
  box-shadow: none !important;
  transition: all 0.25s ease;
}

.blog-faq-accordion .accordion-header .accordion-button:not(.collapsed) {
  color: var(--blog-orange-600);
  background-color: #fff7ed;
  border-bottom: 1px solid var(--blog-slate-200);
}

.blog-faq-accordion .accordion-header .accordion-button:after {
  background-size: 1.1rem;
}

.blog-faq-accordion .accordion-body {
  padding: 20px;
  color: var(--blog-slate-700);
  font-size: 15px;
  line-height: 1.7;
  background-color: #ffffff;
}

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */
.blog-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: var(--blog-slate-50);
  border: 1px solid var(--blog-slate-200);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.sidebar-widget-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blog-teal-950);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
}

.sidebar-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--blog-orange-500);
  border-radius: 2px;
}

/* Recent Articles List */
.recent-articles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recent-article-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--blog-slate-200);
}

.recent-article-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recent-article-thumb {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--blog-slate-200);
}

.recent-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recent-article-item:hover .recent-article-thumb img {
  transform: scale(1.08);
}

.recent-article-info {
  flex-grow: 1;
}

.recent-article-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 6px;
}

.recent-article-title a {
  color: var(--blog-slate-900);
  text-decoration: none;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-article-title a:hover {
  color: var(--blog-orange-500);
}

.recent-article-date {
  font-size: 12px !important;
  color: var(--blog-slate-500);
  display: flex;
  align-items: center;
  gap: 5px;
}

.recent-article-date svg {
  color: var(--blog-orange-500);
}

/* Sidebar CTA Card */
.sidebar-cta-widget {
  background: linear-gradient(135deg, var(--blog-teal-950) 0%, var(--blog-teal-850, #064743) 100%);
  border: none;
  color: #ffffff;
  padding: 30px 24px;
  border-radius: 14px;
  box-shadow: 0 10px 25px -5px rgba(2, 36, 34, 0.4);
}

.sidebar-cta-widget h4 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.sidebar-cta-widget p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .blog-sidebar {
    margin-top: 40px;
    position: static;
  }
}
