/* Read On It - Cassiopeia Child Template */
/* Proxima Emporium Project Color: Deep Red */

:root {
  --roi-primary: #6f1d2a;
  --roi-primary-dark: #4e131d;
  --roi-primary-light: #913344;
  --roi-bg-soft: #f7edef;
  --roi-bg-pale: #fcf7f8;
  --roi-text: #1f1f1f;
  --roi-muted: #666666;
  --roi-border: #dfbcc3;

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

body {
  color: var(--roi-text);
  background: #ffffff;
}

a {
  color: var(--roi-primary-dark);
}

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

/* Header */

.container-header {
  background: #111111;
  border-bottom: 5px solid var(--roi-primary);
}

.container-header .navbar-brand,
.container-header .site-description,
.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
  color: #ffffff;
}

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

/* Dropdown Menus */

.metismenu.mod-menu .mm-collapse {
  background: #111111;
  border-top: 3px solid var(--roi-primary);
}

.metismenu.mod-menu .mm-collapse a {
  color: #ffffff;
}

.metismenu.mod-menu .mm-collapse a:hover {
  background: var(--roi-primary-dark);
  color: #ffffff;
}

/* Headings */

h1,
.page-header h1,
.com-content-article__title {
  color: var(--roi-primary-dark);
  border-bottom: 3px solid var(--roi-primary);
  padding-bottom: .35rem;
}

h2 {
  color: var(--roi-primary-dark);
}

h3,
h4 {
  color: #333333;
}

/* Buttons */

.btn-primary,
.button,
button.btn-primary,
input[type="submit"] {
  background-color: var(--roi-primary);
  border-color: var(--roi-primary);
  color: #ffffff;
  font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus,
.button:hover,
button.btn-primary:hover,
input[type="submit"]:hover {
  background-color: var(--roi-primary-dark);
  border-color: var(--roi-primary-dark);
  color: #ffffff;
}

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

.btn-secondary:hover {
  background-color: var(--roi-primary-dark);
  border-color: var(--roi-primary-dark);
}

/* Article Layout */

.blog-item,
.item-page,
.com-content-category-blog .blog-item {
  border: 1px solid var(--roi-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}

.blog-item {
  padding: 1.25rem;
}

.blog-item .item-title a {
  color: var(--roi-primary-dark);
  text-decoration: none;
}

.blog-item .item-title a:hover {
  color: var(--roi-primary);
  text-decoration: underline;
}

/* Hero / Feature Areas */

.roi-hero,
.roi-feature,
.roi-callout {
  background: var(--roi-bg-soft);
  border-left: 6px solid var(--roi-primary);
  border-radius: 14px;
  padding: 2rem;
  margin: 1.5rem 0;
}

.roi-hero h1,
.roi-feature h2,
.roi-callout h2 {
  margin-top: 0;
  color: var(--roi-primary-dark);
}

/* CTA Areas */

.roi-cta {
  background: #111111;
  color: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  border-top: 6px solid var(--roi-primary);
}

.roi-cta h2,
.roi-cta h3,
.roi-cta p {
  color: #ffffff;
}

.roi-cta a:not(.btn) {
  color: var(--roi-primary-light);
}

/* Tags / Categories */

.badge,
.category-name,
.tags .tag {
  background: var(--roi-bg-soft);
  color: var(--roi-primary-dark);
  border: 1px solid var(--roi-border);
}

.tags .tag a {
  color: var(--roi-primary-dark);
}

/* Modules */

.card,
.moduletable,
.sidebar-right .moduletable,
.sidebar-left .moduletable {
  border-radius: 12px;
}

.card-header,
.moduletable > h3 {
  background: var(--roi-primary);
  color: #ffffff;
  font-weight: 700;
  border-radius: 12px 12px 0 0;
  padding: .75rem 1rem;
}

/* Forms */

.form-control:focus,
.form-select:focus {
  border-color: var(--roi-primary);
  box-shadow: 0 0 0 .2rem rgba(111, 29, 42, .25);
}

label {
  font-weight: 600;
}

/* Tables */

table caption {
  color: var(--roi-primary-dark);
}

.table thead,
table thead {
  background: var(--roi-bg-soft);
  color: var(--roi-primary-dark);
}

/* Breadcrumb */

.breadcrumb {
  background: var(--roi-bg-pale);
  border-left: 4px solid var(--roi-primary);
  padding: .75rem 1rem;
}

.breadcrumb a {
  color: var(--roi-primary-dark);
}

/* Pagination */

.page-link {
  color: var(--roi-primary-dark);
}

.page-item.active .page-link {
  background-color: var(--roi-primary);
  border-color: var(--roi-primary);
  color: #ffffff;
}

/* Footer */

.container-footer {
  background: #111111;
  color: #ffffff;
  border-top: 5px solid var(--roi-primary);
}

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

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

/* Utility Layout Classes */

.roi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.roi-card {
  background: #ffffff;
  border: 1px solid var(--roi-border);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}

.roi-card h2,
.roi-card h3 {
  color: var(--roi-primary-dark);
  margin-top: 0;
}

.roi-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}

.roi-button {
  display: inline-block;
  background: var(--roi-primary);
  color: #ffffff;
  padding: .75rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

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

.roi-button-dark {
  display: inline-block;
  background: #111111;
  color: #ffffff;
  padding: .75rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.roi-button-dark:hover {
  background: var(--roi-primary-dark);
  color: #ffffff;
}

/* Mobile */

@media (max-width: 768px) {
  .roi-hero,
  .roi-feature,
  .roi-callout,
  .roi-cta {
    padding: 1.25rem;
  }

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

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