/* ============================================================
   universityofphoenixreviews.com — Premium Dark Blue Monochromatic Theme (2026)
   ============================================================ */

:root {
  --bg:            #0b0f19;   /* Deep Dark Blue */
  --bg-2:          #111827;   /* Secondary Dark Blue */
  --surface:       #1e293b;   /* Slate/Dark Blue Surface */
  --ink:           #f8fafc;   /* White/Off-white Text */
  --muted:         #94a3b8;   /* Muted Grayish Blue */
  --primary:       #2563eb;   /* Solid Royal Blue */
  --primary-dark:  #1d4ed8;   /* Darker Blue */
  --accent:        #3b82f6;   /* Sky/Light Accent Blue */
  --accent-soft:   #172554;   /* Very Soft Dark Blue */
  --gold:          #f59e0b;   /* Gold Stars */
  --border:        #334155;   /* Slate Border */
  --border-soft:   #475569;   /* Lighter Border */
  --warn:          #ef4444;   /* Red Alert */
  --radius:        10px;
  --radius-lg:     18px;
  --radius-sm:     7px;
  --shadow:        0 4px 18px rgba(0, 0, 0, .4);
  --shadow-lg:     0 18px 46px rgba(0, 0, 0, .6);
  --max:           1080px;
  --header-h:      70px;
  --serif:         Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans:          -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 22px;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.22;
  color: var(--ink);
  font-weight: 700;
}
h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  margin: 0 0 12px;
  letter-spacing: -.01em;
}
h3 {
  font-size: 1.25rem;
  margin: 26px 0 10px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: saturate(150%) blur(9px);
  border-bottom: 1px solid var(--border);
}
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--header-h) - 3px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.3rem;
  letter-spacing: -.02em;
}
.brand:hover {
  text-decoration: none;
}
.brand-dot {
  color: var(--accent);
}
.brand-tld {
  color: var(--accent);
  font-size: .95rem;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--ink);
  background: var(--bg-2);
  text-decoration: none;
}

/* ---------- Nav dropdown (About Us) ---------- */
.has-dropdown {
  position: relative;
}
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: transparent;
  border: none;
}
.dropdown-toggle:hover, .has-dropdown.open .dropdown-toggle {
  color: var(--ink);
  background: var(--bg-2);
}
.dropdown-toggle .caret {
  font-size: .65rem;
  transition: transform .2s;
}
.has-dropdown.open .dropdown-toggle .caret {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 250px;
  list-style: none;
  margin: 0;
  padding: 7px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: .18s;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 600;
  text-align: right;
}
.dropdown-menu li a:hover {
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding: 54px 0 30px;
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 16px;
  padding: 5px 12px;
  background: var(--accent-soft);
  border-radius: 40px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  margin: 0 0 24px;
  letter-spacing: -.02em;
}
.hero h1 .year {
  color: var(--accent);
  font-style: italic;
}

.byline {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.author-avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  box-shadow: 0 0 0 2px var(--primary);
}
.byline-name {
  display: block;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
}
.byline-role {
  display: block;
  font-size: .85rem;
  color: var(--muted);
}

.lead {
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.62;
}

/* ---------- Layout & Clean Blocks Architecture ---------- */
/* Using direct tag styling within sections to minimize wrapper markup */
.layout {
  padding-bottom: 44px;
}
.article > section {
  padding: 38px 0;
  border-top: 1px solid var(--border);
}
.article > section:first-child {
  border-top: none;
}
.article > section > h2 {
  position: relative;
  padding-left: 20px;
}
.article > section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  bottom: .18em;
  width: 5px;
  background: linear-gradient(var(--primary), var(--accent));
  border-radius: 3px;
}

.article p {
  color: var(--ink);
  margin: 14px 0;
}

/* Inline notes / quotes directly using .note class on tag */
.note {
  border-left: 4px solid var(--accent);
  padding: 14px 20px;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.disclaimer {
  font-style: italic;
  color: var(--muted);
  font-size: .92rem;
}

/* ---------- Pros & Cons Box (Minimal Divs) ---------- */
.pros-cons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 22px 0;
}
.pros-cons ul {
  list-style: none;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0;
  box-shadow: var(--shadow);
}
.pros-cons h3 {
  font-family: var(--serif);
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.15rem;
}
.pros-cons li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: .95rem;
}
.pros-cons li:last-child {
  margin-bottom: 0;
}
.pros-cons li::before {
  position: absolute;
  left: 0;
  top: 1px;
  font-weight: 700;
}
.pros-cons .pros h3 {
  color: #34d399; /* soft green */
}
.pros-cons .pros li::before {
  content: "✓";
  color: #34d399;
}
.pros-cons .cons h3 {
  color: #f87171; /* soft red */
}
.pros-cons .cons li::before {
  content: "✗";
  color: #f87171;
}

/* ---------- Responsive Tables ---------- */
/* Responsive behavior is achieved directly on the table tag without overflow wrapper divs! */
table {
  display: table;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 22px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
thead th {
  background: var(--bg-2);
  color: var(--ink);
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  font-family: var(--sans);
  white-space: nowrap;
}
tbody td {
  padding: 13px 16px;
  border-top: 1px solid var(--border);
  color: var(--ink);
  white-space: nowrap;
}
tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}
tbody tr:hover {
  background: var(--accent-soft);
}
.rank {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  font-family: var(--serif);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 40px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  border: none;
  cursor: pointer;
  transition: transform .12s, background .12s;
  white-space: nowrap;
}
.btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-sm {
  padding: 6px 15px;
  font-size: .8rem;
}

/* ---------- Cards Grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 {
  font-family: var(--serif);
  margin: 0 0 8px;
  color: var(--ink);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}
.card-warn {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.05);
}
.card-warn h3 {
  color: var(--warn);
}

/* ---------- Reviews (Clean Layout) ---------- */
.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 15px;
  box-shadow: var(--shadow);
}
.review h3 {
  font-family: var(--serif);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.review p {
  margin: 0 0 12px;
  color: var(--ink);
}
.review p:last-child {
  margin-bottom: 0;
}
.tag {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 11px;
  border-radius: 40px;
  background: var(--bg-2);
  color: var(--accent);
}
.review-watch {
  border-color: rgba(59, 130, 246, 0.4);
  border-left: 4px solid var(--accent);
}
.review-watch .tag {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- Steps (Minimal Ol List) ---------- */
ol.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 15px;
}
ol.steps li {
  position: relative;
  padding: 20px 20px 20px 66px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: var(--shadow);
}
ol.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-family: var(--serif);
}

/* ---------- FAQ Section ---------- */
.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 48px 18px 20px;
  position: relative;
  font-weight: 700;
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--ink);
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform .2s;
  font-family: var(--sans);
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item summary:hover {
  background: var(--accent-soft);
}
.faq-body {
  padding: 0 20px 18px;
}
.faq-body p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Responsible Gambling Banner ---------- */
.rg-banner {
  background: var(--bg-2);
  color: var(--muted);
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.rg-banner h2 {
  color: #fff;
}
.rg-banner h2::before {
  display: none;
}
.rg-banner p {
  color: var(--muted);
}
.rg-help {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}
.rg-help li {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 18px;
  color: var(--ink);
  font-size: .95rem;
}
.rg-help li strong {
  color: #fff;
  display: block;
  margin-bottom: 2px;
  font-family: var(--serif);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #090c15;
  color: var(--muted);
  padding-top: 50px;
  border-top: 1px solid var(--border);
}
.footer-inner-wrap {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: nowrap;
}
.footer-brand-block {
  flex: 0 0 35%;
  max-width: 350px;
}
.footer-links-block {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.site-footer .brand {
  color: #fff;
}
.site-footer .brand-tld {
  color: var(--accent);
}
.footer-about {
  color: var(--muted);
  font-size: .9rem;
  margin: 16px 0;
}
.age-badge {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 800;
  margin: 0;
  font-family: var(--serif);
}
.footer-col h4 {
  font-family: var(--serif);
  margin: 0 0 13px;
  color: #fff;
  font-size: 1rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
.footer-col ul li {
  color: var(--muted);
  font-size: .89rem;
}
.footer-col ul li a {
  color: var(--muted);
}
.footer-col ul li a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 22px 0;
}
.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .25s;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent);
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 900px) {
  .footer-inner-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-brand-block {
    flex: none;
    width: 100%;
    max-width: 500px;
    margin-bottom: 30px;
  }
  .footer-brand-block .age-badge {
    margin: 0 auto;
  }
  .footer-links-block {
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    text-align: left;
  }
}
@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    box-shadow: var(--shadow);
    z-index: 110;
  }
  .main-nav.open {
    max-height: calc(100vh - 70px);
    height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px;
    align-items: stretch;
  }
  .main-nav a {
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: left;
  }
  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .dropdown-menu li a {
    text-align: left;
    padding-left: 24px;
  }
  .has-dropdown.open .dropdown-menu {
    max-height: 340px;
    padding: 4px 0 4px 10px;
  }
  
  /* Mobile table scroll */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Footer Links 2x2 */
  .footer-links-block {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Brand logo shrinks below 442px */
@media (max-width: 442px) {
  .brand {
    font-size: 1.12rem;
  }
}

@media (max-width: 440px) {
  /* Footer Links 1 col, left aligned */
  .footer-links-block {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* Header wraps logo & burger below 380px */
@media (max-width: 380px) {
  .brand {
    font-size: 1.0rem;
  }
  .site-header {
    height: auto;
  }
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 10px 0;
    gap: 6px;
    align-items: center;
  }
  .nav-toggle {
    margin-top: 4px;
  }
  .main-nav.open {
    max-height: calc(100vh - 110px);
    height: calc(100vh - 110px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
