/* ========================================================================== */
/* PXE_Adserver - Cassiopeia Child Template                                   */
/* Promotion Emporium Banner Advertising                                     */
/* proxbanner.proximaemporium.com                                             */
/* ========================================================================== */

/* -------------------------------------------------------------------------- */
/* Color System                                                               */
/* -------------------------------------------------------------------------- */

:root {
  --pxea-primary: #c59a2d;
  --pxea-primary-dark: #96731f;
  --pxea-primary-light: #e0bd62;

  --pxea-bg-soft: #f8f4e8;
  --pxea-bg-pale: #fcfaf4;
  --pxea-bg-muted: #f5f5f5;

  --pxea-text: #1f1f1f;
  --pxea-muted: #666666;
  --pxea-border: #dfd3ae;

  --pxea-success: #2f6b3d;
  --pxea-success-soft: #eef7f0;

  --pxea-warning: #a66f00;
  --pxea-warning-soft: #fff8e6;

  --pxea-danger: #8a2533;
  --pxea-danger-soft: #f9ecef;

  --pxea-info: #2f5f8f;
  --pxea-info-soft: #edf4fa;

  --cassiopeia-color-primary: var(--pxea-primary);
  --cassiopeia-color-link: var(--pxea-primary-dark);
  --cassiopeia-color-hover: var(--pxea-primary);
}

/* -------------------------------------------------------------------------- */
/* Base                                                                       */
/* -------------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

body {
  color: var(--pxea-text);
  background: #ffffff;
  line-height: 1.65;
}

a {
  color: var(--pxea-primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover,
a:focus {
  color: var(--pxea-primary);
}

img {
  max-width: 100%;
  height: auto;
}

hr {
  border-color: var(--pxea-border);
  opacity: 1;
}

/* -------------------------------------------------------------------------- */
/* Typography                                                                 */
/* -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #111111;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  margin-bottom: 1.5rem;
}

main h1 {
  padding-bottom: 0.55rem;
  border-bottom: 3px solid var(--pxea-primary);
}

h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  margin-top: 1.5rem;
}

.lead {
  color: #333333;
  line-height: 1.7;
}

/* -------------------------------------------------------------------------- */
/* Cassiopeia Header                                                          */
/* -------------------------------------------------------------------------- */

.container-header {
  background: #111111;
  background-image: none;
  border-bottom: 4px solid var(--pxea-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.container-header .grid-child {
  align-items: center;
}

.container-header .navbar-brand,
.container-header .site-description {
  color: #ffffff;
}

.container-header .navbar-brand a {
  color: #ffffff;
  text-decoration: none;
}

.container-header .navbar-brand a:hover,
.container-header .navbar-brand a:focus {
  color: var(--pxea-primary-light);
}

.container-header .mod-menu {
  color: #ffffff;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus,
.container-header .mod-menu > li.active > a {
  color: var(--pxea-primary-light);
}

.container-header .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.container-header .navbar-toggler:hover,
.container-header .navbar-toggler:focus {
  border-color: var(--pxea-primary);
}

/* -------------------------------------------------------------------------- */
/* Main Layout                                                                */
/* -------------------------------------------------------------------------- */

.site-grid {
  background: #ffffff;
}

.grid-child.container-component {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

main {
  min-width: 0;
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */

.container-footer {
  background: #111111;
  color: #eeeeee;
  border-top: 4px solid var(--pxea-primary);
}

.container-footer a {
  color: var(--pxea-primary-light);
}

.container-footer a:hover,
.container-footer a:focus {
  color: #ffffff;
}

/* -------------------------------------------------------------------------- */
/* General Cards / Panels                                                     */
/* -------------------------------------------------------------------------- */

.card,
.com-content-article,
.moduletable,
.pxea-panel {
  background: #ffffff;
  border: 1px solid var(--pxea-border);
  border-radius: 0.65rem;
}

.card {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.card-header {
  background: var(--pxea-bg-soft);
  border-bottom: 1px solid var(--pxea-border);
  font-weight: 700;
}

.card-footer {
  background: var(--pxea-bg-pale);
  border-top: 1px solid var(--pxea-border);
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */

.btn {
  border-radius: 0.45rem;
  font-weight: 700;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--pxea-primary);
  border-color: var(--pxea-primary);
  color: #111111;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--pxea-primary-dark);
  border-color: var(--pxea-primary-dark);
  color: #ffffff;
}

.btn-secondary {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: #333333;
  border-color: #333333;
  color: #ffffff;
}

.btn-outline-primary {
  border-color: var(--pxea-primary-dark);
  color: var(--pxea-primary-dark);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--pxea-primary);
  border-color: var(--pxea-primary);
  color: #111111;
}

.pxea-button {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  background: var(--pxea-primary);
  border: 2px solid var(--pxea-primary);
  border-radius: 0.45rem;
  color: #111111;
  font-weight: 700;
  text-decoration: none;
}

.pxea-button:hover,
.pxea-button:focus {
  background: var(--pxea-primary-dark);
  border-color: var(--pxea-primary-dark);
  color: #ffffff;
  text-decoration: none;
}

.pxea-button-dark {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  background: #111111;
  border: 2px solid #111111;
  border-radius: 0.45rem;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.pxea-button-dark:hover,
.pxea-button-dark:focus {
  background: #333333;
  border-color: #333333;
  color: #ffffff;
}

.pxea-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* -------------------------------------------------------------------------- */
/* Forms                                                                      */
/* -------------------------------------------------------------------------- */

.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
textarea,
select {
  border: 1px solid var(--pxea-border);
  border-radius: 0.45rem;
  background: #ffffff;
  color: var(--pxea-text);
  padding: 0.65rem 0.75rem;
}

.form-control:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
textarea:focus,
select:focus {
  border-color: var(--pxea-primary);
  box-shadow: 0 0 0 0.2rem rgba(197, 154, 45, 0.18);
  outline: 0;
}

label,
.form-label {
  color: #222222;
  font-weight: 700;
}

.form-text,
.text-muted {
  color: var(--pxea-muted) !important;
}

fieldset {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--pxea-border);
  border-radius: 0.65rem;
}

legend {
  float: none;
  width: auto;
  padding: 0 0.5rem;
  color: #111111;
  font-size: 1.15rem;
  font-weight: 700;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--pxea-primary-dark);
}

/* -------------------------------------------------------------------------- */
/* Joomla Alerts / Messages                                                   */
/* -------------------------------------------------------------------------- */

.alert {
  border-radius: 0.5rem;
}

.alert-success {
  background: var(--pxea-success-soft);
  border-color: #b7d6bf;
  color: #244f2f;
}

.alert-warning {
  background: var(--pxea-warning-soft);
  border-color: #e4c778;
  color: #6b4b00;
}

.alert-danger {
  background: var(--pxea-danger-soft);
  border-color: #dfb4bc;
  color: #70202d;
}

.alert-info {
  background: var(--pxea-info-soft);
  border-color: #bad0e5;
  color: #244b73;
}

/* -------------------------------------------------------------------------- */
/* Tables                                                                     */
/* -------------------------------------------------------------------------- */

.table,
table {
  color: var(--pxea-text);
}

.table > :not(caption) > * > *,
table td,
table th {
  border-color: #e4e4e4;
}

.table thead th,
table thead th {
  background: #111111;
  color: #ffffff;
  font-weight: 700;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  background: var(--pxea-bg-pale);
}

.table-hover > tbody > tr:hover > * {
  background: var(--pxea-bg-soft);
}

/* -------------------------------------------------------------------------- */
/* Public Marketing Components                                                */
/* -------------------------------------------------------------------------- */

.pxea-hero {
  margin-bottom: 2.5rem;
  padding: clamp(2rem, 5vw, 4rem);
  background:
    linear-gradient(
      135deg,
      rgba(17, 17, 17, 0.98),
      rgba(45, 45, 45, 0.96)
    );
  border-bottom: 5px solid var(--pxea-primary);
  border-radius: 0.75rem;
  color: #ffffff;
}

.pxea-hero h1,
.pxea-hero h2,
.pxea-hero h3 {
  color: #ffffff;
  border-bottom: 0;
}

.pxea-hero p {
  max-width: 850px;
  color: #f2f2f2;
  font-size: 1.08rem;
}

.pxea-kicker {
  margin-bottom: 0.6rem;
  color: var(--pxea-primary-light);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pxea-section {
  margin: 2.5rem 0;
}

.pxea-section-soft {
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--pxea-bg-soft);
  border: 1px solid var(--pxea-border);
  border-radius: 0.75rem;
}

.pxea-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.pxea-card {
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--pxea-border);
  border-radius: 0.7rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.pxea-card h2,
.pxea-card h3 {
  margin-top: 0;
}

.pxea-card-highlight {
  border-top: 5px solid var(--pxea-primary);
}

.pxea-callout {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--pxea-bg-soft);
  border-left: 5px solid var(--pxea-primary);
  border-radius: 0.4rem;
}

.pxea-callout-dark {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #111111;
  border-left: 5px solid var(--pxea-primary);
  border-radius: 0.4rem;
  color: #ffffff;
}

.pxea-callout-dark h2,
.pxea-callout-dark h3 {
  color: #ffffff;
}

.pxea-price {
  color: #111111;
  font-size: 2rem;
  font-weight: 800;
}

.pxea-meta {
  color: var(--pxea-muted);
  font-size: 0.95rem;
}

.pxea-rule {
  height: 3px;
  width: 60px;
  margin: 1rem 0 1.5rem;
  background: var(--pxea-primary);
  border: 0;
}

/* -------------------------------------------------------------------------- */
/* Steps / How It Works                                                       */
/* -------------------------------------------------------------------------- */

.pxea-steps {
  counter-reset: pxea-step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.pxea-step {
  position: relative;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--pxea-border);
  border-radius: 0.65rem;
}

.pxea-step::before {
  counter-increment: pxea-step;
  content: counter(pxea-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 1rem;
  background: var(--pxea-primary);
  border-radius: 50%;
  color: #111111;
  font-weight: 800;
}

/* -------------------------------------------------------------------------- */
/* Dashboard / Portal                                                         */
/* -------------------------------------------------------------------------- */

.pxea-dashboard {
  padding: 1.5rem;
  background: var(--pxea-bg-pale);
  border: 1px solid var(--pxea-border);
  border-radius: 0.75rem;
}

.pxea-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.pxea-stat {
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--pxea-border);
  border-radius: 0.6rem;
}

.pxea-stat-label {
  color: var(--pxea-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.pxea-stat-value {
  margin-top: 0.25rem;
  color: #111111;
  font-size: 1.75rem;
  font-weight: 800;
}

/* -------------------------------------------------------------------------- */
/* Status Labels                                                              */
/* -------------------------------------------------------------------------- */

.pxea-status {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.pxea-status-active,
.pxea-status-approved {
  background: var(--pxea-success-soft);
  color: var(--pxea-success);
}

.pxea-status-pending {
  background: var(--pxea-warning-soft);
  color: var(--pxea-warning);
}

.pxea-status-expired,
.pxea-status-paused {
  background: #eeeeee;
  color: #555555;
}

.pxea-status-rejected,
.pxea-status-unapproved {
  background: var(--pxea-danger-soft);
  color: var(--pxea-danger);
}

/* -------------------------------------------------------------------------- */
/* Ad Agency Pro - General Frontend Cleanup                                   */
/* -------------------------------------------------------------------------- */

/*
 * Ad Agency Pro has historically used a mixture of Bootstrap classes,
 * tables, custom wrappers and older component markup.
 * These selectors are deliberately conservative so that they improve
 * presentation without aggressively overriding extension functionality.
 */

[class*="adagency"],
[id*="adagency"] {
  box-sizing: border-box;
}

[class*="adagency"] .well,
[id*="adagency"] .well {
  padding: 1.25rem;
  background: var(--pxea-bg-pale);
  border: 1px solid var(--pxea-border);
  border-radius: 0.65rem;
  box-shadow: none;
}

[class*="adagency"] .panel,
[id*="adagency"] .panel {
  background: #ffffff;
  border: 1px solid var(--pxea-border);
  border-radius: 0.65rem;
  box-shadow: none;
}

[class*="adagency"] .panel-heading,
[id*="adagency"] .panel-heading {
  padding: 0.85rem 1rem;
  background: var(--pxea-bg-soft);
  border-bottom: 1px solid var(--pxea-border);
  font-weight: 700;
}

[class*="adagency"] .panel-body,
[id*="adagency"] .panel-body {
  padding: 1rem;
}

[class*="adagency"] .btn-primary,
[id*="adagency"] .btn-primary {
  background: var(--pxea-primary);
  border-color: var(--pxea-primary);
  color: #111111;
}

[class*="adagency"] .btn-primary:hover,
[class*="adagency"] .btn-primary:focus,
[id*="adagency"] .btn-primary:hover,
[id*="adagency"] .btn-primary:focus {
  background: var(--pxea-primary-dark);
  border-color: var(--pxea-primary-dark);
  color: #ffffff;
}

[class*="adagency"] table,
[id*="adagency"] table {
  width: 100%;
  background: #ffffff;
}

[class*="adagency"] th,
[id*="adagency"] th {
  font-weight: 700;
}

[class*="adagency"] input[type="text"],
[class*="adagency"] input[type="email"],
[class*="adagency"] input[type="url"],
[class*="adagency"] input[type="password"],
[class*="adagency"] input[type="number"],
[class*="adagency"] textarea,
[class*="adagency"] select,
[id*="adagency"] input[type="text"],
[id*="adagency"] input[type="email"],
[id*="adagency"] input[type="url"],
[id*="adagency"] input[type="password"],
[id*="adagency"] input[type="number"],
[id*="adagency"] textarea,
[id*="adagency"] select {
  max-width: 100%;
  border: 1px solid var(--pxea-border);
  border-radius: 0.4rem;
}

[class*="adagency"] input:focus,
[class*="adagency"] textarea:focus,
[class*="adagency"] select:focus,
[id*="adagency"] input:focus,
[id*="adagency"] textarea:focus,
[id*="adagency"] select:focus {
  border-color: var(--pxea-primary);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(197, 154, 45, 0.16);
}

/* -------------------------------------------------------------------------- */
/* Ad Agency Pro - Lists / Navigation                                         */
/* -------------------------------------------------------------------------- */

[class*="adagency"] ul.nav,
[id*="adagency"] ul.nav {
  gap: 0.25rem;
}

[class*="adagency"] .nav-tabs,
[id*="adagency"] .nav-tabs {
  border-bottom-color: var(--pxea-border);
}

[class*="adagency"] .nav-tabs .nav-link,
[id*="adagency"] .nav-tabs .nav-link {
  color: #333333;
  font-weight: 700;
}

[class*="adagency"] .nav-tabs .nav-link.active,
[class*="adagency"] .nav-tabs .nav-link:hover,
[id*="adagency"] .nav-tabs .nav-link.active,
[id*="adagency"] .nav-tabs .nav-link:hover {
  color: #111111;
  border-color: var(--pxea-border) var(--pxea-border) #ffffff;
  background: var(--pxea-bg-soft);
}

/* -------------------------------------------------------------------------- */
/* Ad Agency Pro - Package Cards                                              */
/* -------------------------------------------------------------------------- */

.pxea-package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.pxea-package {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--pxea-border);
  border-radius: 0.7rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.pxea-package-featured {
  border-top: 5px solid var(--pxea-primary);
}

.pxea-package h2,
.pxea-package h3 {
  margin-top: 0;
}

.pxea-package .pxea-button,
.pxea-package .pxea-button-dark {
  margin-top: auto;
}

/* -------------------------------------------------------------------------- */
/* Login / Registration                                                       */
/* -------------------------------------------------------------------------- */

.login,
.registration,
.profile-edit,
.reset,
.remind {
  max-width: 760px;
}

.login form,
.registration form,
.profile-edit form,
.reset form,
.remind form {
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--pxea-border);
  border-radius: 0.7rem;
}

/* -------------------------------------------------------------------------- */
/* Breadcrumbs                                                                */
/* -------------------------------------------------------------------------- */

.breadcrumb {
  background: var(--pxea-bg-pale);
  border: 1px solid var(--pxea-border);
  border-radius: 0.45rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--pxea-muted);
}

/* -------------------------------------------------------------------------- */
/* Pagination                                                                 */
/* -------------------------------------------------------------------------- */

.pagination .page-link {
  color: var(--pxea-primary-dark);
  border-color: var(--pxea-border);
}

.pagination .page-link:hover,
.pagination .page-link:focus {
  background: var(--pxea-bg-soft);
  color: #111111;
}

.pagination .page-item.active .page-link {
  background: var(--pxea-primary);
  border-color: var(--pxea-primary);
  color: #111111;
}

/* -------------------------------------------------------------------------- */
/* Tooltips                                                                   */
/* -------------------------------------------------------------------------- */

.tooltip-inner {
  background: #111111;
}

.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
  border-top-color: #111111;
}

/* -------------------------------------------------------------------------- */
/* Utility Classes                                                            */
/* -------------------------------------------------------------------------- */

.pxea-text-primary {
  color: var(--pxea-primary-dark);
}

.pxea-text-muted {
  color: var(--pxea-muted);
}

.pxea-bg-soft {
  background: var(--pxea-bg-soft);
}

.pxea-bg-dark {
  background: #111111;
  color: #ffffff;
}

.pxea-border {
  border: 1px solid var(--pxea-border);
}

.pxea-rounded {
  border-radius: 0.65rem;
}

.pxea-shadow {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.pxea-center {
  text-align: center;
}

.pxea-max-width {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
  .pxea-grid,
  .pxea-steps,
  .pxea-package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pxea-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .grid-child.container-component {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
  }

  .pxea-hero {
    padding: 2rem 1.25rem;
    border-radius: 0.55rem;
  }

  .pxea-grid,
  .pxea-steps,
  .pxea-package-grid,
  .pxea-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .pxea-section-soft,
  .pxea-card,
  .pxea-callout,
  .pxea-callout-dark,
  .pxea-dashboard,
  .pxea-package {
    padding: 1.25rem;
  }

  .pxea-button-row {
    flex-direction: column;
  }

  .pxea-button,
  .pxea-button-dark {
    width: 100%;
    text-align: center;
  }

  .table-responsive,
  [class*="adagency"],
  [id*="adagency"] {
    max-width: 100%;
  }

  [class*="adagency"] table,
  [id*="adagency"] table {
    font-size: 0.92rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Print                                                                      */
/* -------------------------------------------------------------------------- */

@media print {
  .container-header,
  .container-footer,
  nav,
  .btn,
  .pxea-button,
  .pxea-button-dark {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .card,
  .pxea-card,
  .pxea-package,
  .pxea-dashboard {
    box-shadow: none;
    border-color: #cccccc;
  }
}