/*
Theme Name: juzserv
Author: 
Author URI: 
Theme URI: 
Tags: full-site-editing, block-patterns
Text Domain: juzserv
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.4
Version: 100.0

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Styles intended only for the front.*/
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
}

@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  background-color: #ffffff !important;
}

html {
  background-color: #ffffff !important;
}

/* Ensure all main content areas have white background */
.wp-site-blocks {
  background-color: #ffffff !important;
}

/* Main content area - but not header groups */
main .wp-block-group {
  background-color: #ffffff !important;
}

/* Header Styles */
/* Promo Banner */
.promo-banner {
  background: linear-gradient(
    135deg,
    rgb(239, 68, 70),
    rgb(74, 45, 132)
  ) !important;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    max-height 0.3s ease,
    margin 0.3s ease,
    padding 0.3s ease;
  transform: translateY(0);
  opacity: 1;
  max-height: 200px;
}

.promo-banner-hidden {
  transform: translateY(-100%) !important;
  opacity: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
}

/* Ensure header wrapper doesn't interfere with sticky positioning */
.header-wrapper {
  position: relative;
}

/* Ensure main header is always visible and sticky */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  background: #ffffff !important;
}

.promo-banner-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-text {
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.75rem;
}

@media (min-width: 768px) {
  .promo-text {
    font-size: 1rem;
  }
}

/* Main Header */
.main-header {
  background: #ffffff !important;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.sticky-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

@media (min-width: 640px) {
  .header-inner {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .header-inner {
    padding: 0 2rem;
  }
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  position: relative;
}

@media (min-width: 768px) {
  .header-content {
    height: 4.5rem;
  }
}

/* Logo */
.header-logo {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.header-logo-img {
  width: 140px;
  height: auto;
  display: block;
}

/* Navigation Links */
.main-nav {
  display: none;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
/*  gap: 2rem;*/
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
    max-width: 669px;
    width: 100%;
  }
}

.nav-link {
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  line-height: 36px;
  margin-left: 2rem;
}
.home-link.nav-link {
  margin-left: 0px;
}

.nav-link:hover {
  color: #ef4446;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

/* Login Button */
.login-btn {
  background: #ffffff;
  color: #ef4446;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #ef4446;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  display: none;
}

@media (min-width: 768px) {
  .login-btn {
    display: block;
  }
}

.login-btn:hover {
  background: #ef4446;
  color: #ffffff;
}

/* Sign Up Button */
.signup-btn {
  background: linear-gradient(135deg, rgb(239, 68, 70), rgb(74, 45, 132));
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  display: none;
}

@media (min-width: 768px) {
  .signup-btn {
    display: block;
  }
}

.signup-btn:hover {
  opacity: 0.9;
}

/* Hamburger Menu */
.hamburger-menu,
.mobile-topmenu-btn {
  background: rgb(239, 70, 70);
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-top: 2px !important;
}

.hamburger-menu:hover,
.mobile-topmenu-btn:hover {
  opacity: 0.9;
}

.menu-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #ffffff;
}

/* Mobile Menu Styles */
.mobile-menu-overlay,
.mobile-topmenu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: transparent;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  pointer-events: none;
}

.mobile-menu-overlay.active,
.mobile-topmenu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-container,
.mobile-topmenu-container {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background-color: #ffffff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 10000;
}

.mobile-menu-overlay.active .mobile-menu-container,
.mobile-topmenu-overlay.active .mobile-topmenu-container {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.mobile-menu-close {
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  background-color: rgb(239, 70, 70);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.mobile-menu-close:hover {
  opacity: 0.9;
}

.mobile-menu-close svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-menu-content {
  flex: 1;
  padding: 0 1.5rem 1.5rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-menu-logo-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu-logo-link {
  display: block;
}

.mobile-menu-logo {
  width: 8rem;
  height: auto;
}

.mobile-menu-tagline {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.625;
  margin: 0;
}

.mobile-menu-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.mobile-menu-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #374151;
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-menu-contact-item:hover {
  color: #ef4446;
}

.mobile-menu-contact-icon {
  padding: 0.5rem;
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.mobile-menu-contact-item:hover .mobile-menu-contact-icon {
  background-color: #fef2f2;
}

.mobile-menu-contact-icon svg {
  width: 1rem;
  height: 1rem;
}

.mobile-menu-contact-text {
  font-size: 0.875rem;
}

.mobile-menu-social-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-social-icon {
  padding: 0.75rem;
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  text-decoration: none;
}

.mobile-menu-social-icon:hover {
  background-color: #ef4446;
  color: #ffffff;
}

.mobile-menu-social-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
}

.mobile-menu-dashboard-btn {
  display: block;
  width: 100%;
  text-align: center;
  background-color: #f3f4f6;
  color: #374151;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}

.mobile-menu-dashboard-btn:hover {
  background-color: #e5e7eb;
}

.mobile-menu-logout-btn {
  width: 100%;
  text-align: center;
  background-color: #fef2f2;
  color: #dc2626;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.mobile-menu-logout-btn:hover {
  background-color: #fee2e2;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

/* Footer Styles */
.site-footer {
  background: linear-gradient(
    135deg,
    rgb(239, 68, 70),
    rgb(74, 45, 132)
  ) !important;
  color: #ffffff;
}

/* Footer Main Container */
.footer-main-container {
  max-width: 1216px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Footer Columns - Responsive Grid */
.footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 768px) {
  .footer-columns {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .footer-columns {
    gap: 4rem;
  }
}

/* Footer Logo Section */
.footer-logo-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-logo-section {
    gap: 1.5rem;
  }
}

.footer-logo {
  margin-bottom: 0;
}

.footer-description {
  color: #ffffff;
  font-size: 0.75rem;
  line-height: 1.75;
  margin: 0;
  max-width: 18rem;
}

@media (min-width: 768px) {
  .footer-description {
    font-size: 0.875rem;
  }
}

/* Footer Headings */
.footer-heading {
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .footer-heading {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }
}

/* Footer Links */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .footer-links {
    gap: 0.75rem;
  }
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
  display: block;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-button {
  font-family: inherit;
}

/* Social Icons Container */
.social-icons-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .social-icons-container {
    gap: 1rem;
  }
}

.social-icons-row {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .social-icons-row {
    gap: 1rem;
  }
}

.social-icon {
  width: 2rem;
  height: 2rem;
  background: #ffffff;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  text-decoration: none;
}

@media (min-width: 768px) {
  .social-icon {
    width: 3rem;
    height: 3rem;
  }
}

.social-icon:hover {
  background: #f3f4f6;
}

.social-icon-svg {
  width: 1rem;
  height: 1rem;
  color: #ef4446;
}
.social-icon-tiktok .social-icon-svg {
  color: #000000;
}

@media (min-width: 768px) {
  .social-icon-svg {
    width: 1.75rem;
    height: 1.75rem;
  }
}

.social-icon-tiktok {
  color: #000000;
}

.social-icon-tiktok:hover {
  background: #f3f4f6;
  color: #000000;
}

.social-icon-youtube {
  color: #dc2626;
}

.social-icon-youtube:hover {
  background: #f3f4f6;
  color: #b91c1c;
}

/* Footer Separator */
.footer-separator {
  max-width: 100%;
  margin-top: 20px !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  height: 1px;
  margin: 0;
  border: none;
}

/* Footer Bottom */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    padding: 1.5rem 1.5rem;
  }
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .footer-bottom-content {
    flex-direction: row;
    gap: 0;
  }
}

.footer-copyright {
  margin: 0;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-copyright {
    font-size: 0.875rem;
    text-align: left;
  }
}

.footer-copyright a {
  color: #ffffff;
  text-decoration: none;
}

.footer-copyright a:hover {
  color: #ffffff;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-contact {
    gap: 1.5rem;
    justify-content: flex-end;
  }
}

.footer-contact-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s;
}

@media (min-width: 768px) {
  .footer-contact-link {
    font-size: 0.875rem;
    gap: 0.5rem;
  }
}

.footer-contact-link:hover {
  color: #ffffff;
}

.contact-icon {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .contact-icon {
    width: 1rem;
    height: 1rem;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 20;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  padding: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition:
    background 0.2s,
    box-shadow 0.2s;
  text-decoration: none;
}

.whatsapp-float a:hover {
  background: #22c55e;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.whatsapp-icon {
  width: 2.25rem;
  height: 2.25rem;
}

/* Main Content Container */
.main-content {
  width: 100%;
  max-width: 100%;
}

/* Post Cards Grid Layout */
.posts-container {
  max-width: 1232px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .posts-container {
    padding: 0 2rem;
  }
}

.wp-block-query .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
  padding: 0;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  height: 100%;
  border: 1px solid #f3f4f6;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.15),
    0 4px 10px rgba(0, 0, 0, 0.1);
  border-color: #e5e7eb;
}

.post-card .wp-block-post-featured-image {
  margin: 0;
  overflow: hidden;
  position: relative;
  height: 200px;
  background: #f3f4f6;
}

.post-card .wp-block-post-featured-image a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

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

.post-card:hover .wp-block-post-featured-image img {
  transform: scale(1.1);
}

.post-card .wp-block-post-title {
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.post-card .wp-block-post-title a {
  color: #1e1e1e;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card .wp-block-post-title a:hover {
  color: #ef4446;
}

.post-card .wp-block-post-excerpt {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  margin: 0px;
}
.wp-block-group.social-share-lists {
  margin: 10px 0px 1.5rem;
}

.post-card .wp-block-post-excerpt p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read More Button - Simple design matching screenshot */
.post-card .wp-block-post-link {
  margin-top: 1.5rem;
  display: inline-block;
}

.post-card .read-more-button .wp-block-button__link {
  background: transparent !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  padding: 0 !important;
  display: inline-block !important;
  transition: all 0.2s ease !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
  line-height: 1.5 !important;
  text-align: center !important;
  box-shadow: none !important;
  text-transform: none !important;
}

.post-card .read-more-button .wp-block-button__link:hover {
  opacity: 0.9 !important;
  transform: translateY(-1px) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

/* Also style read-more block if it's still being used */
.wp-block-read-more a,
.read-more-link a,
.post-card .wp-block-read-more a,
.post-card .read-more-link a {
  background: linear-gradient(
    135deg,
    rgb(239, 68, 70),
    rgb(74, 45, 132)
  ) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  padding: 0.625rem 1.25rem !important;
  display: inline-block !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
  box-shadow: 0 2px 4px rgba(239, 68, 70, 0.2) !important;
}

.wp-block-read-more a:hover,
.read-more-link a:hover,
.post-card .wp-block-read-more a:hover,
.post-card .read-more-link a:hover {
  opacity: 0.95 !important;
  transform: translateY(-2px) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 8px rgba(239, 68, 70, 0.3) !important;
}

.read-more-button-wrapper {
  margin-top: 1.5rem;
}

.read-more-button {
  background: linear-gradient(
    135deg,
    rgb(239, 68, 70),
    rgb(74, 45, 132)
  ) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  padding: 0.625rem 1.25rem;
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.875rem;
  box-shadow: 0 2px 4px rgba(239, 68, 70, 0.2);
}

.read-more-button:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  color: #ffffff !important;
  box-shadow: 0 4px 8px rgba(239, 68, 70, 0.3);
}

/* Query Pagination */
.wp-block-query-pagination {
  margin-top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding-top: 10px;
}

.wp-block-query-pagination .wp-block-query-pagination-previous,
.wp-block-query-pagination .wp-block-query-pagination-next {
  text-decoration: none;
  color: #ef4446;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.wp-block-query-pagination .wp-block-query-pagination-previous:hover,
.wp-block-query-pagination .wp-block-query-pagination-next:hover {
  background: #f3f4f6;
}

.wp-block-query-pagination-numbers {
  display: flex;
  gap: 0.5rem;
}

.wp-block-query-pagination-numbers a,
.wp-block-query-pagination-numbers span {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  color: #4b5563;
  transition:
    background 0.2s,
    color 0.2s;
}

.wp-block-query-pagination-numbers a:hover {
  background: #f3f4f6;
  color: #ef4446;
}

.wp-block-query-pagination-numbers .page-numbers.current {
  background: linear-gradient(135deg, rgb(239, 68, 70), rgb(74, 45, 132));
  color: #ffffff;
}

/* Responsive adjustments */
/* Responsive Post Grid */
@media (max-width: 1024px) {
  .wp-block-query .wp-block-post-template {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .post-card .wp-block-post-featured-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .wp-block-query .wp-block-post-template {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .posts-container {
    padding: 0 1rem;
  }

  .post-card .wp-block-post-featured-image {
    height: 220px;
  }

  .post-card .wp-block-post-title a {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .post-card .wp-block-post-featured-image {
    height: 200px;
  }

  .post-card {
    border-radius: 10px;
  }
}

/* Single Post Styles */
.single-post-main {
  background-color: #ffffff;
}

.single-post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .single-post-container {
    padding: 0 2rem;
  }
}

.single-post-header {
  margin-bottom: 2rem;
}

.single-post-header .wp-block-post-title {
  color: #1e1e1e;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.single-post-header .wp-block-post-title a {
  color: #1e1e1e;
  text-decoration: none;
  transition: color 0.2s;
}

.single-post-header .wp-block-post-title a:hover {
  color: #ef4446;
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.single-post-meta .wp-block-post-date,
.single-post-meta .wp-block-post-author {
  color: #6b7280;
  font-size: 0.875rem;
}

.single-post-meta .wp-block-post-date a,
.single-post-meta .wp-block-post-author a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.single-post-meta .wp-block-post-date a:hover,
.single-post-meta .wp-block-post-author a:hover {
  color: #ef4446;
}

/* Featured Image */
.single-post-container .wp-block-post-featured-image {
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

.single-post-container .wp-block-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Post Content */
.single-post-container .wp-block-post-content {
  color: #1e1e1e;
  line-height: 1.8;
  font-size: 1rem;
}

.single-post-container .wp-block-post-content p {
  margin-bottom: 1.5rem;
}

.single-post-container .wp-block-post-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1e1e1e;
}

.single-post-container .wp-block-post-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #1e1e1e;
}

.single-post-container .wp-block-post-content ul,
.single-post-container .wp-block-post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.single-post-container .wp-block-post-content li {
  margin-bottom: 0.5rem;
}

.single-post-container .wp-block-post-content a {
  color: #ef4446;
  text-decoration: none;
  transition: color 0.2s;
}

.single-post-container .wp-block-post-content a:hover {
  color: #dc2626;
  text-decoration: underline;
}

.single-post-container .wp-block-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.single-post-container .wp-block-post-content blockquote {
  border-left: 4px solid #ef4446;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #4b5563;
}

/* Tags */
.single-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.single-post-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #f3f4f6;
  color: #1e1e1e;
  border-radius: 6px;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s;
}

.single-post-tag:hover {
  background-color: #ef4446;
  color: #ffffff;
}

/* Post Navigation */
.single-post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid #e5e7eb;
}

.single-post-navigation .wp-block-post-navigation-link {
  flex: 1;
  min-width: 0;
}

.single-post-navigation .wp-block-post-navigation-link a {
  display: block;
  padding: 0.75rem 1rem;
  background-color: #f3f4f6;
  border-radius: 8px;
  color: #1e1e1e;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.single-post-navigation .wp-block-post-navigation-link a:hover {
  background-color: #ef4446;
  color: #ffffff;
}

.single-post-navigation .wp-block-post-navigation-link__label {
  font-size: 0.75rem;
  color: #6b7280;
  display: block;
  margin-bottom: 0.25rem;
}

.single-post-navigation
  .wp-block-post-navigation-link
  a:hover
  .wp-block-post-navigation-link__label {
  color: rgba(255, 255, 255, 0.8);
}

.single-post-navigation .wp-block-post-navigation-link__title {
  font-weight: 600;
  display: block;
}

.wp-block-query-pagination-numbers a {
  border: none !important;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.5rem;
}

.wp-block-query-pagination-numbers .page-numbers.current {
  background: linear-gradient(
    135deg,
    rgb(239, 68, 70),
    rgb(74, 45, 132)
  ) !important;
  color: #fff !important;
  box-shadow: 0 2px 4px rgba(239, 68, 70, 0.2);
  padding: 0.25rem 1rem;
}

.posts-container {
  padding: 0 0.5rem;
}

.wp-block-query-pagination .wp-block-query-pagination-previous,
.wp-block-query-pagination .wp-block-query-pagination-next {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  color: #492c83;
  padding: 0.588rem 1rem;
  background: #fff;
  font-weight: normal;
}
.wp-block-query-pagination .wp-block-query-pagination-previous-arrow,
.wp-block-query-pagination .wp-block-query-pagination-next-arrow {
  display: none;
}
.single-post-container {
  padding: 0 0.5rem;
  max-width: 100%;
}
.single-post-container .wp-block-post-featured-image,
main .wp-block-group,
.single-post-container .wp-block-post-content {
  max-width: 100%;
}
.wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button {
  padding: 0.625rem 1.25rem;
  background: linear-gradient(
    135deg,
    rgb(239, 68, 70),
    rgb(74, 45, 132)
  ) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
}
main .wp-block-group.blog-addeddate,
.single-post-container .wp-block-post-content {
  margin-top: 10px;
}
.sidebar-inner ul {
  margin-top: 0px;
}
.sidebar-inner ul li a {
  font-size: 15px;
  text-decoration: none;
  position: relative;
  padding-left: 30px;
}
.sidebar-inner ul li a:before {
  background: url("images/tick.png") no-repeat 0px 0px;
  content: "";
  position: absolute;
  top: 2px;
  left: 0px;
  width: 20px;
  height: 20px;
}
.wp-block-categories-list.wp-block-categories {
  padding-left: 0px;
}
.wp-block-query-pagination-numbers {
  line-height: initial;
}
main .wp-block-group.bloglist-contentblocks {
  margin-right: 0px !important;
  margin-left: 0px !important;
  display: flex;
  flex-direction: column;
  margin-top: 0px !important;
}
main .wp-block-group.bloglist-contentblocks .post-card .wp-block-post-title {
  margin-right: 0px !important;
  margin-left: 0px !important;
}
.post-card .bloglist-contentblocks .wp-block-post-title {
  margin-right: 0px !important;
  margin-left: 0px !important;
  height: 50px;
  overflow: hidden;
}
main .wp-block-group.bloglist-contentblocks a.read-more-button {
  margin-top: auto;
  align-self: center;
}
.sidebar .wp-block-group.sidebar-inner {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px 20px;
  box-shadow:
    rgba(0, 0, 0, 0.1) 0px 1px 3px,
    rgba(0, 0, 0, 0.06) 0px 1px 2px;
}
.wp-block-group.navigation-blocks {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin: 50px 0;
  padding-top: 30px;
  border-top: 1px solid #e5e7eb;
}

.wp-block-group.navigation-blocks .post-navigation-link-previous a,
.wp-block-group.navigation-blocks .post-navigation-link-next a {
  position: relative;
  display: inline-block; /* REQUIRED */
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  padding-bottom: 6px;
  transition: color 0.3s ease;
}

.wp-block-group.navigation-blocks .post-navigation-link-previous a::after,
.wp-block-group.navigation-blocks .post-navigation-link-next a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #4a2d83;
  transition: width 0.3s ease;
}

/* TEXT COLOR ON HOVER */
.wp-block-group.navigation-blocks .post-navigation-link-previous a:hover,
.wp-block-group.navigation-blocks .post-navigation-link-next a:hover {
  color: #ef4646;
}

/* UNDERLINE ANIMATION */
.wp-block-group.navigation-blocks .post-navigation-link-previous a:hover::after,
.wp-block-group.navigation-blocks .post-navigation-link-next a:hover::after {
  width: 100%;
}

.main-header.sticky-header.shrink,
.promo-banner.sticky-header.shrink {
  position: fixed !important;
  width: 100%;
  margin-top: 0px !important;
}
.single-post-container h1.wp-block-post-title,
.wp-block-post-title {
  font-size: 28px;
}
.post-share strong {
  vertical-align: text-bottom;
}
.post-share a {
  color: transparent;
  margin: 0px 7px;
}
.post-share .social-icon-svg {
  width: 30px;
  height: 30px;
}
.view-moreblocks {
  display: flex;
  align-items: center;
}
.view-moreblocks .social-share-lists {
  margin-left: 25px;
}
.view-moreblocks .post-share a {
  margin: 0px 3px;
}
.view-moreblocks .post-share .social-icon-svg {
  width: 20px;
  height: 20px;
  color: #4b2f85;
}
.view-moreblocks .post-share a:hover .social-icon-svg {
  color: #ef4446;
  transition: all 0.2s;
}

main.single-post-main .wp-block-group .wp-block-columns {
  min-height: 100vh;
  flex-direction: row;
}
main.single-post-main
  .wp-block-group
  .wp-block-columns
  .wp-block-column.sidebar {
  position: sticky;
  top: 160px;
  align-self: flex-start;
}

nav.main-nav .relative {
  position: relative;
}
nav.main-nav .relative.last-topmenu {
  margin-left: 2rem;
}
nav.main-nav .relative button {
  transition-duration: 0.2s;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  color: transparent;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.375rem;
  padding: 0.375rem 0.5rem;
  display: flex;
  align-items: center;
  background: transparent;
  border: transparent;
}
nav.main-nav .relative button span {
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "Inter", system-ui, sans-serif;
  cursor: pointer;
  margin-right: 4px;
}
nav.main-nav .relative button svg {
  color: #9333ea;
  font-size: 1rem;
  font-weight: 600;
  transition-duration: 0.2s;
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  transition: transform 0.3s ease;
}

nav.main-nav .nav-link.relative button span {
  background: none; -webkit-text-fill-color: inherit;
  color: #374151;
}

nav.main-nav .relative .absolute.submnenu-links {
  overflow: hidden;
  visibility: hidden;
  position: absolute;
  opacity: 0;
}

nav.main-nav .relative.group:hover button svg {
  transform: rotate(180deg);
}

nav.main-nav .relative.group:hover .absolute.submnenu-links {
  opacity: 1;
  visibility: visible;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: .3s;
  width: 16rem;
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #f3e8ff;
  top: 36px;
}
nav.main-nav .relative .absolute.submnenu-links .from-red-600 {
  position: absolute;
  height: 0.25rem;
  top: 0px;
  right: 0px;
  left: 0px;
  background: linear-gradient(to right, #dc2626, #9333ea);
}
nav.main-nav .relative .absolute.submnenu-links a {
  color: #374151;
  padding: 0.375rem 1rem;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  font-size: 16px;
  display: block;
  text-decoration: none;
  font-weight: 500;
}
nav.main-nav .relative .absolute.submnenu-links a.first-submenu { padding: 0.5rem 1rem }
nav.main-nav .relative .absolute.submnenu-links a:hover {
  color: #c11111;
  background: #fbf4fc;
}
.mobile-topmenu-btn svg,
.hamburger-menu svg {
  color: #ffffff;
}

.mobile-topmenu-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

.mobile-topmenu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-topmenu-overlay .mobile-menu-section h3 {
  margin: 0px;
  color: #111827;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.mobile-topmenu-overlay .mobile-menu-section ul {
  margin: 0px;
  padding: 0px;
}
.mobile-topmenu-overlay .mobile-menu-section ul li {
  list-style: none;
  padding: 0px 0px 10px 0px;
}
.mobile-topmenu-overlay .mobile-menu-section ul li a,
.mobile-topmenu-overlay .mobile-menu-section ul li a:hover {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 16px;
  color: #374151;
  line-height: 24px;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.mobile-topmenu-overlay .mobile-menu-section ul li a.active {
  background: #ef4446;
  color: #ffffff;
  display: block;
}
.mobile-topmenu-btn {
  display: none;
}
.header-actions a.bg-white.login-button {
  color: #EF4446;
  border: 1px solid #EF4446;
  border-radius: .5rem;
  padding: .4rem 1rem;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}
.header-actions a.bg-white.login-button:hover {
  background: #EF4446;
  color: #fff;
  border: 1px solid #EF4446;
  transition: color 0.3s ease;
}
.header-actions a.bg-gradient-primary {
  background: linear-gradient(135deg,#ef4446,#4a2d84);
  transition-duration: .3s;
  transition: color 0.3s ease;  
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  padding: .4rem 1rem;
  border-radius: .5rem;
  text-decoration: none;
}
.mobile-menu-actions { display: none; }
@media (max-width: 767px) {
  .header-actions a.bg-gradient-primary,
  .header-actions a.bg-white.login-button {
    display: none;
  }
  .single-post-navigation {
    flex-direction: column;
  }

  .single-post-container {
    padding: 0 1rem;
  }

  .single-post-header .wp-block-post-title {
    font-size: 1.75rem;
  }
  .mobile-custom-menu button { width: 100%; display: flex; cursor: pointer; align-items: center; justify-content: space-between; border-radius: .5rem; padding: .75rem 1rem; font-weight: 500; color: #374151; transition: color 0.3s ease; background: none; border:0px;font-family: "Inter", system-ui, sans-serif; }
  .mobile-custom-menu button span { line-height: inherit; letter-spacing: inherit; font-weight: 500; font-size: 16px; color: #374151; }
  .mobile-custom-menu button svg { width: 1.25rem; height: 1.25rem; transition: transform 0.3s ease; }
  .mobile-custom-menu .ml-4 {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
  }

  .mobile-custom-menu.active .ml-4 {
    max-height: 500px; /* enough height */
    opacity: 1;
  }

  /* SVG rotation */
  .mobile-custom-menu svg {
    transition: transform 0.3s ease;
  }

  .mobile-custom-menu.active svg {
    transform: rotate(180deg);
  }
  .mobile-custom-menu .ml-4 {
    margin-left: 1rem;
    margin-top: .5rem;
  }
  .mobile-custom-menu .ml-4 a { 
    font-weight: 500;
    padding: .75rem 1rem;
    border-radius: .5rem;
    display: block;
    font-size: 16px; color: #374151; transition: color 0.3s ease; text-decoration: none;
  }
  .mobile-menu-actions { border-top: 1px solid #E5E7EB; display:flex; }
  .mobile-menu-actions a { width:auto; display:block; font-weight: 600; text-align:center; padding:.60rem 1.5rem; border-radius: .5rem; font-size:16px; text-decoration:none; }
  .mobile-menu-actions a.menu-actions-login { border:1px solid #EF4446;  color:#EF4446; font-size:16px; text-decoration:none; }
  .mobile-menu-actions a.menu-actions-signup { background:#EF4446; border: 1px solid #EF4446; color:#fff; }

}

@media (max-width: 991px) {

  .promo-banner.sticky-header {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  .promo-banner.sticky-header .promo-text {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
  .main-header.sticky-header {
    margin-top: 14px !important;
  }
  .main-header .wp-block-group.header-inner {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .main-content.blog-listing-content,
  .single-post-main {
    padding-top: 0px !important;
  }
  .post-card .bloglist-contentblocks .wp-block-post-title {
    height: 30px;
  }
  .site-footer .site-footer {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .site-footer .footer-bottom p.footer-copyright {
    font-size: 0.75rem;
    line-height: 1rem;
  }
  .social-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  .social-icons-row {
    gap: 0.5rem;
  }
  .social-icon-svg {
    width: 1.5rem;
    height: 1.5rem;
  }
  .social-icons-container {
    flex-direction: row;
  }
  .footer-main-container .footer-columns .footer-links,
  .footer-main-container .social-icons-container {
    margin-top: 0px;
  }
  .hamburger-menu,
  .mobile-topmenu-btn {
    margin-top: 0px !important;
  }
  .mobile-topmenu-btn {
    display: flex;
  }
  .mobile-menu-header {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 0px;
  }
  .mobile-menu-container,
  .mobile-topmenu-container {
    max-width: 100%;
  }
  .mobile-menu-content {
    margin-top: 1.5rem;
  }
  .mobile-menu-logo-section {
    gap: 0.375rem;
  }
}

@media screen and (min-width: 375px) and (max-width: 932px) and (orientation: landscape) {
  .social-icons-row.mobile-column-footer {
    width: auto;
    gap: 0.75rem;
  }
  .social-icons-container {
    flex-direction: column;
  }
  .social-icon {
    width: 2rem;
    height: 2rem;
  }
}

@media (min-width: 992px) {
  .home .blog-listing-content,
  .search .wp-block-group-is-layout-constrained {
    margin: 0;
  }
}

.search .wp-block-group-is-layout-constrained h1.wp-block-query-title,
.search .wp-block-group-is-layout-constrained hr,
.search
  .wp-block-group-is-layout-constrained
  .wp-block-search__button-outside:not(.home-search) {
  display: none;
}

.wp-block-search .wp-block-search__input {
  border: 1px solid #caced5;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 14px;
  line-height: 24px;
  min-width: 294px;
  width: 100%;
}

.wp-block-search .wp-block-search__inside-wrapper {
  margin-bottom: 25px;
}
