/**
 * Theme Name:     Inspiry Candor Child
 * Author:         Inspiry Themes
 * Template:       inspiry-candor
 * Text Domain:	   inspiry-candor-child
 * Description:    A WordPress blog theme.
 */


/* Container for Like + Comment buttons in listing */
.custom-post-actions-listing {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
  /* dono button vertically align ho jayenge */
}

/* Style for comment button */
.custom-comment-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ccc;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  /* icon/text vertical center */
  justify-content: center;
  height: 32px;
  /* same height */
  box-sizing: border-box;
}

.custom-comment-btn:hover {
  background-color: #f0f0f0;
}

/* Like button (WP ULike) same style as comment */
.custom-post-actions-listing .wp_ulike_general_class {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px 8px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  transition: background-color 0.2s ease;
}

.custom-post-actions-listing .wp_ulike_general_class:hover {
  background-color: #f0f0f0;
}

/* ========================================
   RESPONSIVE HEADER STYLES
   ======================================== */

/* Desktop Header - Show only on desktop/laptop */
.desktop-header {
  display: block;
}

/* Mobile/Tablet Header - Hide on desktop */
.mobile-tablet-header {
  display: none;
}

/* Mobile/Tablet Header Styles */
.mobile-tablet-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 15px;
  position: relative;
  z-index: 1000;
}

.mobile-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
}

.mobile-logo {
  flex-shrink: 0;
  margin-right: 10px;
}

.mobile-logo img {
  max-height: 40px;
  width: auto;
}

.mobile-title {
  flex-grow: 1;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-icons {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.mobile-search-toggle,
.mobile-menu-toggle {
  color: #333;
  font-size: 18px;
  text-decoration: none;
  padding: 5px;
  transition: color 0.3s ease;
}

.mobile-search-toggle:hover,
.mobile-menu-toggle:hover {
  color: #007cba;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {

  /* Hide desktop header on tablet and mobile */
  .desktop-header {
    display: none;
  }

  /* Show mobile/tablet header */
  .mobile-tablet-header {
    display: block;
  }

  /* Hide the main header on mobile/tablet */
  .site-header {
    display: none;
  }
}

@media (min-width: 1025px) {

  /* Sticky Header Wrapper */
  .sticky-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 10000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  /* Show desktop header on desktop */
  .desktop-header {
    display: block;
    background: #fff;
  }

  /* Hide mobile/tablet header on desktop */
  .mobile-tablet-header {
    display: none;
  }

  /* Show the main header on desktop */
  .site-header {
    display: block;
    background: #fff;
  }
}

/* Also for mobile if needed */
@media (max-width: 1024px) {
  .sticky-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 10000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
}


/* Additional mobile optimizations */
@media (max-width: 768px) {
  .mobile-header-content {
    padding: 0 5px;
  }

  .mobile-title {
    font-size: 16px;
    margin: 0 5px;
  }

  .mobile-icons {
    gap: 10px;
  }

  .mobile-search-toggle,
  .mobile-menu-toggle {
    font-size: 16px;
  }
}








/* Zoom effect always when wrapper is hovered */
.post-thumbnail-wrapper {
  position: relative;
  overflow: hidden;
  /* extra image zoom bahar na nikle */
}

.post-thumbnail-wrapper img {
  transition: transform 0.6s ease;
  display: block;
  width: 100%;
  height: auto;
}

.post-thumbnail-wrapper:hover img {
  transform: scale(1.1);
  /* Zoom in */
}

/* Make sure buttons do not block the hover */
.post-thumbnail-wrapper .custom-post-actions-listing {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 20;
  pointer-events: none;
  /* buttons parent hover block na kare */
}

.post-thumbnail-wrapper .custom-post-actions-listing * {
  pointer-events: auto;
  /* sirf buttons clickable rahe */
}

/* Hide only the top menu tabs bar */
body.toplevel_page_vxcf_leads h2.nav-tab-wrapper {
  display: none !important;
}


/* Custom Styles for "Behind The Ink" Section Heading to match Hero Title (Visual H1) */
.elementor-heading-title.elementor-size-default {
  font-size: 42px !important;
  line-height: 1.2 !important;
  font-weight: bold !important;
  margin: 0 0 15px !important;
  display: block !important;
}

@media (min-width: 992px) {
  .elementor-heading-title.elementor-size-default {
    font-size: 40px !important;
  }
}


/* Custom Styles for ".p1" paragraph to match Hero Subtitle */
p.p1 {
  font-family: "PT Serif", Georgia, "Times New Roman", Times, serif !important;
  color: #4b4b4b !important;
  font-size: 16px !important;
  line-height: 1.875 !important;
  margin: 0 !important;
  text-align: justify !important;
}

@media (min-width: 992px) {
  p.p1 {
    font-size: 18px !important;
  }
}


/* Fix spacing between Elementor Heading and Description to match Hero Section spacing (15px) */
/* Targets specific Elementor Container ID "4567b20" to remove flex gap */
[data-id="4567b20"] {
  gap: 0 !important;
}

/* Ensure Heading Widget wrapper adds no extra margin */
[data-id="c15b91e"] {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Ensure Text Editor Widget wrapper has no top margin/padding */
[data-id="c26e539"] {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* Hide Site Title Visually (but keep for SEO) */
/* Hide Site Title Visually (but keep for SEO) */
.site-title,
.site-branding-logo,
.mobile-site-branding-logo {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  /* IE6, IE7 */
  clip: rect(1px 1px 1px 1px);
  height: 1px !important;
  width: 1px !important;
  overflow: hidden;
  padding: 0 !important;
  border: 0 !important;
  margin: 0 !important;
}

/* Justified Alignment for Hero Subtitle */
.hero-subtitle {
  text-align: justify;
}

/* Justified Alignment for Post Excerpts/Descriptions */
.entry-summary {
  text-align: justify;
}

/* Justified Alignment for Content Paragraphs */
.entry-content p {
  text-align: justify;
}

/* Specific Justification for Sidebar, Summary, and Author Paragraphs */
.sidebar .widget p,
.sidebar .textwidget p,
.sidebar .widget_text p,
.sidebar .elementor-widget-text-editor p,
.entry-summary p,
.post-carousel p,
.about-author .author-info p {
  text-align: justify !important;
}

/* Center all content in the Top Posts widget (Header, Summary, Meta, Button) */
section.top_posts_widget .post-content-wrapper,
section.top_posts_widget .top-post-header,
section.top_posts_widget .top-post-summary,
section.top_posts_widget .top-post-summary p,
section.top_posts_widget .top-post-entry-meta,
section.top_posts_widget .top-post-btn {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
}










/* Increase Font Size for Post Meta (Author & Date) across all sections */
.entry-meta,
.entry-meta .entry-meta-item,
.entry-meta .entry-meta-item a,
.top-post-entry-meta,
.top-post-entry-meta .top-post-meta-item,
.top-post-entry-meta .top-post-meta-item a {
  font-size: 17px !important;
}


.email-contact-box {
  text-align: center;
}

/* Horizontal Contact Section Styling */
.horizontal-contact {
  display: flex !important;
  align-items: stretch;
  /* Stretch to make divider full height */
  text-align: left;
}

.contact-left {
  flex: 0 0 260px;
  /* Updated to 260px */
  border-right: 1px solid #eee;
  /* Divider */
  padding-right: 40px;
  display: flex;
  align-items: center;
  /* Center logo vertically */
}

.contact-logo {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.contact-right {
  flex: 1;
  padding-left: 40px;
  display: flex;
  align-items: center;
  /* Center content vertically */
  justify-content: center;
  /* Center content horizontally */
}

.horizontal-contact .email-contact-box {
  text-align: center !important;
  width: 100%;
}

.horizontal-contact .email-description {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
}

@media (max-width: 768px) {
  .horizontal-contact {
    flex-direction: column !important;
    text-align: center !important;
    padding: 30px 20px !important;
    align-items: center !important;
  }

  .contact-left {
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 25px !important;
    border-right: none !important;
    border-bottom: 1px solid #eee;
    /* Horizontal Divider for Mobile */
    padding-right: 0 !important;
    padding-bottom: 25px !important;
  }

  .contact-right {
    padding-left: 0 !important;
    width: 100%;
  }

  .horizontal-contact .email-title {
    margin-top: 0px !important;
  }

  .contact-logo {
    max-width: 250px;
    margin: 0 auto !important;
    display: block;
  }

  .horizontal-contact .email-contact-box {
    text-align: center !important;
  }
}


.email-icon {
  margin-bottom: 20px;
}

.email-icon i {
  font-size: 52px;
  color: #4b4b4b;
  transition: color 0.3s ease;
}

.email-title {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
  line-height: 1.3;
}

.email-description {
  font-size: 16px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 25px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.email-link {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 16px 35px;
  border: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.email-link i {
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.email-link:hover {
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
  color: #fff;
  transform: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.email-link:hover i {
  transform: none;
}

@media (max-width: 768px) {
  .hello-section {
    padding: 30px 20px !important;
  }

  .email-icon i {
    font-size: 40px;
  }

  .email-title {
    font-size: 22px;
  }

  .email-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .email-link {
    font-size: 16px;
    padding: 12px 24px;
  }
}