/*
==================================================
  General Layout & Utilities
==================================================
*/

/* Smooth anchor jump + sticky header offset */
html {
  scroll-behavior: smooth;
}

/* Adjust this if your sticky header height changes */
#order {
  scroll-margin-top: 72px;
}

/*
==================================================
  Full-Width Layout Helpers (GeneratePress & Gutenberg)
==================================================
*/

/* Force GeneratePress containers full-width */
.site .grid-container,
.site .container,
.site .inside-article {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Make Gutenberg "Full width" blocks truly edge-to-edge */
.entry-content .alignfull,
.wp-block-group.alignfull,
.wp-block-cover.alignfull,
.wp-block-columns.alignfull,
.wp-block-image.alignfull,
.hero-section.alignfull,
.order-section.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* Optional: limit "Wide width" to a sane max */
.entry-content .alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}


/*
==================================================
  Header & Main Navigation
==================================================
*/

/* Remove theme's default underline effect */
.main-navigation .main-nav ul li > a::after {
  content: none !important;
}

/* Base link styles */
.main-navigation .main-nav ul li a {
  position: relative;
  padding: 8px 15px;
  background: transparent !important;
  color: #374151;
  transition: color 0.2s, transform 0.18s;
  z-index: 1; /* Text must be above the underline bar */
}

/* Lift & change color on hover/focus */
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li a:focus {
  color: #2563eb;
  transform: translateY(-2px);
}

/* Underline bar pseudo-element (initially hidden) */
.main-navigation .main-nav ul li a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: #2563eb;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s;
  z-index: 0; /* Bar must be under the text */
  pointer-events: none;
}

/* Show underline bar on hover, focus, or for the current page */
.main-navigation .main-nav ul li a:hover::before,
.main-navigation .main-nav ul li a:focus::before,
.main-navigation .main-nav ul li.current-menu-item > a::before,
.main-navigation .main-nav ul li.current_page_item > a::before {
  transform: scaleX(1);
}

/*
==================================================
  Blog & Archive Grid
==================================================
*/

/* 1. Force a responsive grid layout for post lists */
.blog .wp-block-post-template,
.archive .wp-block-post-template,
.page .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
  margin: 0 !important;
}

/* Responsive grid columns */
@media (max-width: 1024px) {
  .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .wp-block-post-template {
    grid-template-columns: 1fr;
  }
}

/* Remove big gap above grid created by the Query Loop block */
.wp-block-query {
  margin-top: 0 !important;
}

/* 2. Style post items */
.wp-block-post-featured-image {
  margin: 0 0 14px 0 !important;
}

.wp-block-post-featured-image a {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
}

.wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3. Limit post excerpt to 3 lines */
.wp-block-post-excerpt__excerpt {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  min-height: 72px;
}


/*
==================================================
  Single Post Content & Meta
==================================================
*/

/* Style links inside post content */
.entry-content a {
  color: #0645ad;
  text-decoration: underline;
}

/* Post Meta styling and visibility */
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: 10px 0 20px;
  font-size: 0.9em;
  color: #555;
}

/* Hide specific meta items */
.entry-meta .byline,
.entry-meta .posted-on,
.reading-time {
  display: none !important;
}

/* Show custom reading time field */
.entry-meta-reading-time {
  display: inline;
  color: #666;
  font-size: 0.9em;
  margin-left: 5px;
}

/*
==================================================
  Social Share Buttons
==================================================
*/

/* Hide unwanted share buttons */
.social-share-buttons .share-twitter,
.social-share-buttons .share-facebook,
.social-share-buttons .share-x,
.social-media-share .twitter,
.social-media-share .facebook {
  display: none !important;
}

/* Style visible share buttons */
.social-share-buttons .share-email,
.social-share-buttons .share-whatsapp {
  display: inline-block !important;
  margin-right: 10px;
  padding: 8px 16px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.social-share-buttons .share-email:hover,
.social-share-buttons .share-whatsapp:hover {
  background: #3b82f6;
}

/*
==================================================
  HOMEPAGE-SPECIFIC STYLES (page-id-1671)
==================================================
*/

/* 1. Visually hide the default H1 page title for SEO. */
/* This keeps it in the code for Google but makes it invisible. */
.page-id-1671 .entry-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; /* prevents text from wrapping */
  border: 0;
}

/* 2. Remove top padding from the main content area. */
/* This pulls your hero section up to the header. */
.page-id-1671 main#main {
  padding-top: 0 !important;
}

/* 3. Ensure the text inside your hero block is white and visible. */
.page-id-1671 .hero-title,
.page-id-1671 .hero-subtitle {
  color: #ffffff !important;
}

/* 4. Spacing adjustments for other sections on the homepage */
#values {
  padding-bottom: 20px !important;
}

#about-cta {
  padding-top: 16px !important;
  padding-bottom: 48px;
}

#about-cta a {
  margin-top: 0 !important;
}

#values + #about-cta {
  --wp--style--block-gap: 0;
}
/*
==================================================
  ABOUT PAGE - HERO LAYOUT FIX
==================================================
*/

/* On the About page ONLY (replace 123 with your page ID) */

/* 1. Visually hide the default H1 page title for SEO. */
/* This keeps it in the code for Google but makes it invisible. */
.page-id-123 .entry-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; /* prevents text from wrapping */
  border: 0;
}

/* 2. Remove top padding from the main content area. */
/* This pulls your custom content up to the header. */
.https://rainmakerssg.ai/wp-admin/post.php?post=2225&action=edit
 main#main {
  padding-top: 0 !important;
}
/* Hide header and footer for Partner Form Page */
body.page-id-4366 header,
body.page-id-4366 footer,
body.page-id-4366 .site-header,
body.page-id-4366 .site-footer {
  display: none !important;
}

/* Optional: Remove extra padding/margins */
body.page-id-4366 .site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}