/* PS Custom Styles */

/* Prevent horizontal scroll on all viewports */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

.js-sticky-header {
  position: absolute;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 24px);
  z-index: 1000;
  width: 100%;
  left: 0;
  right: 0;
}
.js-sticky-header.is-sticky {
  position: fixed;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 24px);
  width: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
}

.ps-header {
  width: 1360px;
  max-width: 100%;
  height: 80px;
  background-color: #4d1278;
  border-radius: 50px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.4);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Desktop header - only show on desktop screens and up */
@media (min-width: 1240px) {
  .ps-header {
    display: flex;
  }
}

/* Mobile header - hide on desktop screens and up */
@media (min-width: 1240px) {
  .ps-mobile-header {
    display: none !important;
  }
}

.ps-logo-frame {
  width: 170px;
  height: 48px;
  display: flex;
  align-items: center;
  color: white;
  flex-shrink: 0;
}

.ps-nav-frame {
  width: 225px;
  height: 80px;
  padding: 16px 0;
  flex-shrink: 0;
}

.ps-nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 24px;
}

.ps-nav-link {
  height: 48px;
  padding: 12px 0;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 100%;
  color: white;
}

.ps-nav-menu li {
  white-space: nowrap;
}

/* Mobile navigation wrap fix */
@media only screen and (max-width: 1240px) {
  .ps-nav-menu li {
    white-space: normal;
  }
}

/* Navigation menu list overrides - prevent generic list styles from affecting navigation */
.ps-nav-menu,
.ps-nav-menu ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  list-style: none;
}

.ps-nav-menu li,
.ps-nav-menu ul li {
  margin: 0;
  list-style-type: none;
  list-style: none;
}

/* Current/active menu item */
.current-menu-item .ps-nav-link,
.current_page_item .ps-nav-link {
  font-weight: 700;
}

/* Authentication Frame - unified wrapper for both login button and user menu */
.ps-auth-frame {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ps-login-button {
  /* Content-based sizing with proportional padding based on 42px:171px ratio */
  height: 48px;
  width: auto; /* Let content determine width */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px; /* Adjusted padding for better proportion */
  gap: 8px; /* Space between text and arrow */
  background-color: white;
  border-radius: 32px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 100%;
  color: #111113;
  white-space: nowrap; /* Prevent text wrapping */
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.ps-login-button:hover,
.ps-login-button:focus {
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  outline: none;
}

/* Mobile Header Styles */
.ps-mobile-header {
  display: flex;
  width: 100%;
  height: 65px;
  background: #4d1278;
  border-radius: 0;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.4);
  padding: 0px 16px;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.ps-mobile-logo-frame {
  width: 34px;
  height: 38px;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.ps-mobile-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ps-mobile-nav-container {
  width: 120px;
  height: 28px;
  flex: none;
  order: 1;
  flex-grow: 0;
  position: relative;
}

.ps-mobile-nav-dropdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px;
  gap: 8px;
  width: 100%;
  height: 28px;
  position: relative;
}

.ps-mobile-nav-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0px 8px;
  gap: 8px;
  width: 120px;
  height: 20px;
  order: 0;
  align-self: stretch;
  flex-grow: 0;
}

.ps-mobile-nav-main-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0px 4px;
  gap: 4px;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  /* Button-specific styles to match link appearance */
  border: none;
  background: none;
}

.ps-mobile-nav-main-item span {
  flex: none;
  order: 1;
  flex-grow: 0;
  margin: 0 auto;
  width: auto;
  height: 19px;
}

.ps-mobile-dropdown-arrow {
  width: 16px;
  height: 16px;
  flex: none;
  order: 2;
  flex-grow: 0;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.ps-mobile-nav-dropdown-content {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 200px;
  background: white;
  border-radius: 16px 0 16px 16px; /* Match user menu dropdown design */
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15); /* Match user menu dropdown shadow */
  border: 1px solid #e5e7eb; /* Match user menu dropdown border */
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease; /* Match user menu dropdown transitions */
  box-sizing: border-box;
}

.ps-mobile-nav-dropdown-content.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.ps-mobile-nav-dropdown-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  color: #374151;
  text-decoration: none;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
}

.ps-mobile-nav-dropdown-item:hover,
.ps-mobile-nav-dropdown-item:focus {
  background-color: #f3f6f9;
  outline: none;
}

.ps-mobile-nav-dropdown-item:first-child {
  border-radius: 16px 0 0 0; /* Top-left matches dropdown, top-right 0, no bottom corners */
}

.ps-mobile-nav-dropdown-item:last-child {
  border-radius: 0 0 16px 16px; /* Only bottom corners rounded */
}

/* Mobile Authentication Frame - unified wrapper for both mobile login and user menu */
.ps-mobile-auth-frame {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  order: 2;
  flex-grow: 0;
}

.ps-mobile-login-button {
  /* Content-based mobile sizing with proportional padding */
  height: 32px;
  width: auto; /* Let content determine width */
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px 16px; /* Proportional mobile padding */
  gap: 4px;
  background: #ffffff;
  border-radius: 32px;
  border: none;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  color: #111113;
  text-decoration: none;
  white-space: nowrap; /* Prevent text wrapping */
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.ps-mobile-login-button:hover,
.ps-mobile-login-button:focus {
  background-color: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  outline: none;
}

/* User Menu Compatibility - reuses login button classes */
.ps-auth-frame .ps-user-menu-dropdown {
  width: auto; /* Let user menu determine its own width */
  height: 100%;
}

.ps-mobile-auth-frame .ps-user-menu-dropdown {
  width: auto; /* Let mobile user menu determine its own width */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* User Menu Dropdown Styles */
.ps-user-menu-dropdown {
  position: relative;
  display: inline-block;
  width: auto;
  height: 100%;
}

/* User Menu Trigger - extends login button with dropdown functionality */
.ps-user-menu-trigger {
  position: relative;
}

/* User Menu Text and Arrow - positioned within button */
.ps-user-menu-text {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 600;
  color: #111113;
  flex: none;
  order: 0;
  flex-grow: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px; /* Limit width to trigger ellipsis for long names */
}

.ps-user-menu-arrow {
  flex: none;
  order: 1;
  flex-grow: 0;
  color: #111113;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* Desktop text sizing */
.ps-login-button .ps-user-menu-text {
  font-size: 20px;
  line-height: 24px;
}

.ps-login-button .ps-user-menu-arrow {
  width: 20px;
  height: 20px;
}

/* Mobile text sizing */
.ps-mobile-login-button .ps-user-menu-text {
  font-size: 16px;
  line-height: 19px;
}

.ps-mobile-login-button .ps-user-menu-arrow {
  width: 16px;
  height: 16px;
}

/* Arrow transition for all devices */
.ps-user-menu-arrow {
  transition: transform 0.2s ease;
}

/* Arrow rotation when dropdown is open (JavaScript controlled) */
.ps-user-menu-dropdown.open .ps-user-menu-arrow {
  transform: rotate(180deg);
}

/* Dropdown Content */
.ps-user-menu-dropdown-content {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 100%; /* Same width as the button */
  background: white;
  border-radius: 16px 0 16px 16px; /* Top-left: 16px, Top-right: 0, Bottom-right: 16px, Bottom-left: 16px */
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e7eb;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
  box-sizing: border-box;
}

.ps-user-menu-dropdown-content.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Dropdown Items */
.ps-user-menu-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  color: #374151;
  text-decoration: none;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
}

.ps-user-menu-item:hover,
.ps-user-menu-item:focus {
  background-color: #f3f6f9;
  outline: none;
}

.ps-user-menu-item:first-child {
  border-radius: 16px 0 0 0; /* Top-left matches dropdown, top-right 0, no bottom corners */
}

.ps-user-menu-item:last-child {
  border-radius: 0 0 16px 16px; /* Only bottom corners rounded */
}

/* Logout Item Styling - same as other items now */
.ps-user-menu-logout {
  border-top: 1px solid #e5e7eb;
  /* Removed red color styling */
}

.ps-user-menu-logout:hover,
.ps-user-menu-logout:focus {
  background-color: #f3f6f9 !important;
  /* Removed red hover styling */
}

/* Hover Behavior - Only works when dropdown is NOT in JS-controlled state */
.ps-user-menu-dropdown:not(.js-controlled):hover
  .ps-user-menu-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0ms;
}

/* Arrow rotation on hover (only when not controlled by JS) */
.ps-user-menu-dropdown:not(.js-controlled):hover .ps-user-menu-arrow {
  transform: rotate(180deg);
}

/* Keep dropdown visible when hovering over content (only when not JS controlled) */
.ps-user-menu-dropdown:not(.js-controlled)
  .ps-user-menu-dropdown-content:hover {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Hero Section */
.ps-hero-wrapper {
  width: 100%;
  min-width: 1440px;
  height: 600px;
  background-image: url('../assets/media/panelsmart-banner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  border: 1px solid rgba(17, 17, 19, 0.1);
  margin: 0 auto;
}

/* Mobile hero wrapper fix */
@media only screen and (max-width: 1240px) {
  .ps-hero-wrapper {
    min-width: auto;
    width: 100%;
    min-height: 460px;
    padding: 24px 16px;
    background-position: right;
  }

  .ps-hero-wrapper .ps-hero-inner {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    text-align: center;
    margin-right: 0px;
  }

  .ps-hero-title,
  .ps-hero-text {
    text-align: center;
  }
}

.ps-hero-inner {
  max-width: 488px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  opacity: 1;
  padding: 0 16px;
  margin-left: auto;
  margin-right: 24%;
  margin-top: 2%;
}

@media only screen and (min-width: 1960px) {
  .ps-hero-inner {
    margin-right: 36%;
  }
}

.ps-hero-title {
  width: fit-content;
  height: auto;
  opacity: 1;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0;
  text-align: center;
}

.ps-hero-text {
  width: 100%;
  max-width: 488px;
  height: auto;
  opacity: 1;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: 0;
  color: #2f2f33;
  text-align: center;
}

.ps-hero-buttons {
  width: 319px;
  max-width: 100%;
  height: 48px;
  display: flex;
  gap: 10px;
  opacity: 1;
}

.ps-hero-button-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #59ac36;
  border-radius: 32px;
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  width: 150px;
  height: 48px;
  gap: 4px;
  opacity: 1;
  padding-top: 8px;
  padding-right: 16px;
  padding-bottom: 8px;
  padding-left: 16px;
}

.ps-hero-button-secondary {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 32px;
  color: #111113;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  width: 126px;
  height: 48px;
  gap: 4px;
  opacity: 1;
  border-width: 2px;
  padding-top: 8px;
  padding-right: 16px;
  padding-bottom: 8px;
  padding-left: 16px;
}

/* Footer Styles */
.ps-footer {
  width: 100%;
  background-color: #4d1278;
  color: white;
  font-family: 'Inter', sans-serif;
}

.ps-footer-logo-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.ps-footer-separator {
  width: 1280px;
  max-width: 100%;
  height: 0;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.ps-footer-content {
  max-width: 1280px;
  margin: 20px auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr) 100px;
  gap: 40px;
}

/* Mobile footer responsive design */
@media only screen and (max-width: 1240px) {
  .ps-footer {
    padding-bottom: 20px;
  }

  .ps-footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 16px;
    text-align: left;
  }

  /* Contact section stays left-aligned on mobile */
  .ps-footer-content > div:first-child {
    text-align: left;
  }

  /* Menu sections - left aligned */
  .ps-footer-content > div:nth-child(2),
  .ps-footer-content > div:nth-child(3) {
    text-align: left;
  }

  /* Top button section - right aligned */
  .ps-footer-content > div:last-child {
    text-align: right;
    display: flex;
    justify-content: flex-end;
  }

  /* Copyright centered on mobile */
  .ps-footer-copyright {
    text-align: center;
    padding: 24px 16px;
  }
}

.ps-footer-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 100%;
  margin-bottom: 24px;
}

.ps-footer-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
}

.ps-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ps-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ps-footer-menu li {
  margin-bottom: 16px;
}

.ps-footer-menu a {
  color: white;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 100%;
}

/* Footer menu list overrides - prevent generic list styles from affecting footer navigation */
.ps-footer-menu,
.ps-footer-menu ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  list-style: none;
}

.ps-footer-menu li,
.ps-footer-menu ul li {
  list-style-type: none;
  list-style: none;
}

/* General WordPress menu overrides */
.menu,
nav ul,
nav ol,
.wp-block-navigation ul,
.wp-block-navigation ol {
  margin: 0;
  padding: 0;
  list-style-type: none;
  list-style: none;
}

.menu li,
nav ul li,
nav ol li,
.wp-block-navigation ul li,
.wp-block-navigation ol li {
  margin: 0;
  list-style-type: none;
  list-style: none;
}

.ps-footer-social {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}
.ps-footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--primary-base, #e7c647);
  width: 36px;
  height: 36px;
  opacity: 1;
  border-radius: 50%;
  fill: #111113;
}
.ps-footer-social-icon:hover {
  fill: var(--quaternary-700, #111113);
  transition: fill 0.3s ease;
  cursor: pointer;
  background: #ffffff;
}
.ps-footer-to-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin-left: auto;
  margin-top: auto;
}

.ps-footer-to-top-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-base, #e7c647);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #111113;
}

.ps-footer-to-top-icon:hover {
  background: #ffffff;
}

.ps-footer-to-top-icon:hover svg path {
  stroke: var(--quaternary-700, #111113);
}

.ps-footer-to-top-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 100%;
  color: white;
}
.ps-footer-copyright {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 0;
  font-size: 18px;
}

h1 {
  font-size: 32px;
  font-weight: 700;
  color: #037979;
  line-height: 1.5;
  margin-bottom: 20px;
}
h2 {
  font-size: 28px;
  font-weight: 600;
  color: #000;
  line-height: 1.5;
  margin-bottom: 16px;
}
h3 {
  font-size: 24px;
  font-weight: 500;
  color: #000;
  line-height: 1.2;
  margin-bottom: 12px;
}
p {
  font-size: 16px;
  color: #000;
  line-height: 1.6;
  margin-bottom: 16px;
}
.wp-block-columns-is-layout-flex {
  flex-wrap: wrap !important;
}

/* List Styles */
ul,
ol {
  margin: 16px 0;
  padding-left: 32px;
  line-height: 1.6;
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

ul ul {
  list-style-type: circle;
  margin: 8px 0;
}

ol ol {
  list-style-type: lower-alpha;
  margin: 8px 0;
}

ul ul ul {
  list-style-type: square;
}

ol ol ol {
  list-style-type: lower-roman;
}

li {
  margin-bottom: 8px;
  font-size: 16px;
  color: #000;
  line-height: 1.6;
}

li:last-child {
  margin-bottom: 0;
}

/* Nested list spacing */
li > ul,
li > ol {
  margin-top: 8px;
  margin-bottom: 8px;
}

/* WordPress block editor list styles */
.wp-block-list {
  margin: 16px 0;
  padding-left: 32px;
}

.wp-block-list li {
  margin-bottom: 8px;
}

/* Ensure lists inside other elements maintain proper styling */
.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol {
  margin: 16px 0;
  padding-left: 32px;
}

.entry-content li,
.page-content li {
  margin-bottom: 8px;
  font-size: 16px;
  color: #000;
  line-height: 1.6;
}
table th {
  background: #d5d5d5;
}

.ps-faqs {
  display: inline-block;
}
.ps5-container-inner {
  max-width: 1200px;
}
.post-content {
  padding-bottom: 0px !important;
}
.ps-contact-form-col {
  align-self: center;
}
.wp-block-columns-is-layout-flex {
  flex-wrap: wrap !important;
}
.ps5-contact-info-block {
  width: 100% !important;
}
h3.ps-footer-heading {
  color: #fff;
}
h1,
h2,
h3 {
  font-family: 'Poppins', sans-serif;
  color: #4d1278;
}
.ps-hero-wrapper {
  min-width: auto;
}
@media only screen and (max-width: 1240px) {
  .ps-header {
    width: 100%;
  }
  .ps-mobile-header {
    width: 100%;
    border-radius: 0;
    margin: 0;
  }
  .ps-footer-copyright {
    width: 100% !important;
  }
  .ps-footer-separator {
    width: 100% !important;
  }
}

/* Mobile screens only - hide desktop header */
@media only screen and (max-width: 640px) {
  .ps-header {
    display: none !important;
  }
  .ps-mobile-header {
    display: flex !important;
  }
}

/* Tablet responsive styles */
@media only screen and (min-width: 640px) and (max-width: 1240px) {
  .ps-mobile-header {
    display: flex !important;
  }

  .ps-header {
    display: none !important;
  }

  .ps-mobile-nav-container {
    width: 120px;
  }

  .ps-mobile-nav-top,
  .ps-mobile-nav-dropdown-content {
    width: 112px;
  }
}

.ps-hero-text,
.ps-hero-inner {
  width: 100%;
}
.ps5-feature-grid__subheading {
  white-space: normal;
}
