/* ===================================
   Digital Marketing Blog Styling - Premium Edition
   Main Colors: #151577 (Deep Blue) & #32b561 (Green)
   Limited to #ftwp-postcontent div only
=================================== */

/* ===================================
   Advanced Heading Styles with Custom Icon
=================================== */
div#ftwp-postcontent h1, 
div#ftwp-postcontent h2, 
div#ftwp-postcontent h3, 
div#ftwp-postcontent h4, 
div#ftwp-postcontent h5, 
div#ftwp-postcontent h6 {
  color: #151577 !important;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  margin: 32px 0 24px 0;
}

/* Premium gradient background for headings */
div#ftwp-postcontent h1, 
div#ftwp-postcontent h2 {
  background: linear-gradient(135deg, #151577, #1a1a8a, #32b561);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
  font-size: 2.2em;
  text-shadow: 0 4px 8px rgba(21, 21, 119, 0.1);
}

div#ftwp-postcontent h3, 
div#ftwp-postcontent h4, 
div#ftwp-postcontent h5, 
div#ftwp-postcontent h6 {
  background: linear-gradient(90deg, #151577, #32b561);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

/* Animated underline for headings */
div#ftwp-postcontent h1::after, 
div#ftwp-postcontent h2::after, 
div#ftwp-postcontent h3::after, 
div#ftwp-postcontent h4::after, 
div#ftwp-postcontent h5::after, 
div#ftwp-postcontent h6::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #32b561, #151577);
  animation: expandLine 2s ease-out forwards;
  border-radius: 2px;
}

/* Custom icon for headings with synchronized rotation animation */
div#ftwp-postcontent h1::before, 
div#ftwp-postcontent h2::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 32px;
  background-image: url('https://dps.media/wp-content/uploads/2025/08/dps-icon.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 12px;
  vertical-align: middle;
  animation: rotate 10s linear infinite;
}

div#ftwp-postcontent h3::before, 
div#ftwp-postcontent h4::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 28px;
  background-image: url('https://dps.media/wp-content/uploads/2025/08/dps-icon.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 10px;
  vertical-align: middle;
  animation: rotate 10s linear infinite;
}

div#ftwp-postcontent h5::before, 
div#ftwp-postcontent h6::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('https://dps.media/wp-content/uploads/2025/08/dps-icon.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 8px;
  vertical-align: middle;
  animation: rotate 10s linear infinite;
}

/* ===================================
   Simplified Premium Table Styling - Only Header Colored
=================================== */
div#ftwp-postcontent table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  border: 1px solid rgba(21, 21, 119, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(21, 21, 119, 0.08);
  margin: 30px 0;
}

/* Enhanced cell styling */
div#ftwp-postcontent table td, 
div#ftwp-postcontent table th {
  padding: 16px 20px;
  border-right: 1px solid rgba(21, 21, 119, 0.05);
  border-bottom: 1px solid rgba(21, 21, 119, 0.05);
  text-align: left;
  vertical-align: middle;
  font-size: 15px;
  position: relative;
  color: #2c3e50;
  line-height: 1.5;
}

/* Remove borders on last column and row */
div#ftwp-postcontent table td:last-child, 
div#ftwp-postcontent table th:last-child {
  border-right: none;
}
div#ftwp-postcontent table tr:last-child td {
  border-bottom: none;
}

/* Premium header styling - ONLY HEADER HAS COLOR */
div#ftwp-postcontent table thead tr {
  background: linear-gradient(135deg, #151577, #1a1a8a);
  color: #ffffff;
}

div#ftwp-postcontent table thead th {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: none;
  padding: 18px 20px;
  border-bottom: 2px solid rgba(50, 181, 97, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

div#ftwp-postcontent table thead th:last-child {
  border-right: none;
}

/* ALL OTHER ROWS HAVE NO BACKGROUND COLOR */
div#ftwp-postcontent table tbody tr {
  background: transparent !important;
}

/* Premium hover effects */
div#ftwp-postcontent table tbody tr:hover {
  background: rgba(50, 181, 97, 0.05) !important;
  transition: all 0.3s ease;
}

div#ftwp-postcontent table tbody tr:hover td {
  color: #151577;
  font-weight: 600;
}

/* Responsive table */
@media (max-width: 768px) {
  div#ftwp-postcontent table {
    font-size: 14px;
    margin: 20px 0;
  }
  
  div#ftwp-postcontent table td, 
  div#ftwp-postcontent table th {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  div#ftwp-postcontent table thead th {
    font-size: 13px;
    padding: 15px;
  }
}

/* ===================================
   Enhanced Image Styling (Simplified) with Watermark
=================================== */
div#ftwp-postcontent .entry-content.single-page figure,
div#ftwp-postcontent figure.wp-caption.aligncenter,
div#ftwp-postcontent .kimage_class,
div#ftwp-postcontent .wp-image,
div#ftwp-postcontent img.kimage_class {
  background: #ffffff;
  border: 1px solid rgba(50, 181, 97, 0.15);
  border-radius: 12px;
  padding: 15px;
  margin: 30px 0;
  box-shadow: 0 8px 20px rgba(21, 21, 119, 0.06);
  transition: all 0.3s ease;
  display: block;
  position: relative;
}

/* Watermark for large images */
div#ftwp-postcontent .entry-content.single-page figure > img:first-child,
div#ftwp-postcontent figure.wp-caption.aligncenter > img:first-child,
div#ftwp-postcontent .kimage_class > img:first-child,
div#ftwp-postcontent .wp-image > img:first-child,
div#ftwp-postcontent img.kimage_class:first-child {
  position: relative;
}

div#ftwp-postcontent .entry-content.single-page figure > img:first-child::before,
div#ftwp-postcontent figure.wp-caption.aligncenter > img:first-child::before,
div#ftwp-postcontent .kimage_class > img:first-child::before,
div#ftwp-postcontent .wp-image > img:first-child::before,
div#ftwp-postcontent img.kimage_class:first-child::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 40px;
  height: 40px;
  background-image: url('https://dps.media/wp-content/uploads/2025/08/dps-icon.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.7;
  z-index: 1;
}

div#ftwp-postcontent .entry-content.single-page figure:hover,
div#ftwp-postcontent figure.wp-caption.aligncenter:hover,
div#ftwp-postcontent .kimage_class:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(21, 21, 119, 0.1);
}

div#ftwp-postcontent .entry-content.single-page figure img,
div#ftwp-postcontent figure.wp-caption.aligncenter img,
div#ftwp-postcontent .kimage_class img,
div#ftwp-postcontent img.kimage_class {
  border-radius: 8px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* For standalone images without figure wrapper */
div#ftwp-postcontent img.kimage_class:not([style*="padding"]) {
  padding: 15px;
}

div#ftwp-postcontent .entry-content.single-page figure figcaption,
div#ftwp-postcontent figure.wp-caption.aligncenter figcaption,
div#ftwp-postcontent .kimage_class figcaption {
  text-align: center;
  background: rgba(50, 181, 97, 0.05);
  color: #151577;
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
  padding: 10px 15px;
  border-radius: 8px;
}

/* ===================================
   Simplified Table of Contents
=================================== */
div#ftwp-postcontent #tocer-1 {
  background: #ffffff;
  border: 1px solid rgba(50, 181, 97, 0.15);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(21, 21, 119, 0.06);
  margin-bottom: 35px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

div#ftwp-postcontent #tocer-1 .tocer-title {
  font-weight: 700;
  font-size: 20px;
  background: linear-gradient(135deg, #151577, #32b561);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

div#ftwp-postcontent #tocer-1 .tocer-title::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('https://dps.media/wp-content/uploads/2025/08/dps-icon.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 10px;
  vertical-align: middle;
  animation: rotate 10s linear infinite;
}

div#ftwp-postcontent #tocer-1 .tocer-list,
div#ftwp-postcontent #tocer-1 .tocer-sublist {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

div#ftwp-postcontent #tocer-1 li {
  margin-bottom: 10px;
  padding: 0;
}

div#ftwp-postcontent #tocer-1 a {
  color: #151577;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 8px;
  display: block;
}

div#ftwp-postcontent #tocer-1 a:hover {
  color: #32b561;
  background: rgba(50, 181, 97, 0.05);
  transform: translateX(5px);
}

/* ===================================
   Enhanced Typography & Visual Hierarchy
=================================== */
/* Premium paragraph styling */
div#ftwp-postcontent p {
  color: #34495e !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  font-weight: 400 !important;
  margin-bottom: 20px !important;
}

/* Enhanced list styling */
div#ftwp-postcontent ul, 
div#ftwp-postcontent ol {
  color: #34495e !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  margin: 20px 0 !important;
}

div#ftwp-postcontent ul li, 
div#ftwp-postcontent ol li {
  margin-bottom: 8px !important;
  position: relative !important;
}

/* Custom bullet points */
div#ftwp-postcontent ul li::before {
  content: "▶" !important;
  color: #32b561 !important;
  font-weight: bold !important;
  position: absolute !important;
  left: -20px !important;
}

/* Enhanced strong/bold text */
div#ftwp-postcontent strong, 
div#ftwp-postcontent b {
  color: #151577 !important;
  font-weight: 700 !important;
}

/* Enhanced links */
div#ftwp-postcontent a {
  color: ##1664c0 !important;
  font-weight: 700 !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent !important;
}

div#ftwp-postcontent a:hover {
  color: #151577 !important;
  border-bottom-color: #32b561 !important;
}

/* Premium Call-to-Action Buttons */
div#ftwp-postcontent .cta-button, 
div#ftwp-postcontent .wp-block-button__link {
  background: linear-gradient(135deg, #151577, #32b561) !important;
  color: white !important;
  padding: 14px 28px !important;
  border-radius: 50px !important;
  border: none !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 6px 16px rgba(21, 21, 119, 0.2) !important;
}

div#ftwp-postcontent .cta-button:hover, 
div#ftwp-postcontent .wp-block-button__link:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 20px rgba(21, 21, 119, 0.3) !important;
}

/* Premium Blockquotes */
div#ftwp-postcontent blockquote {
  background: linear-gradient(135deg, #ffffff, #f8faff);
  border-left: 4px solid #32b561;
  padding: 20px 25px;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(21, 21, 119, 0.06);
  font-style: italic;
  color: #151577;
}

/* Premium Code blocks */
div#ftwp-postcontent pre, 
div#ftwp-postcontent code {
  background: linear-gradient(135deg, #f1f3ff, #fafbff) !important;
  color: #151577 !important;
  border: 1px solid rgba(50, 181, 97, 0.15) !important;
  border-radius: 8px !important;
  font-family: 'JetBrains Mono', 'Courier New', monospace !important;
  box-shadow: 0 3px 8px rgba(21, 21, 119, 0.05) !important;
}

div#ftwp-postcontent pre {
  padding: 20px !important;
  overflow-x: auto !important;
}

/* ===================================
   Keyframe Animations
=================================== */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes expandLine {
  0% { width: 0; }
  100% { width: 80px; }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}