/*
 * Don Dutton Agency — shared stylesheet
 * Used by index, FAQ, Helpful Links, How to Save, It's Not Just You,
 * Driving in NJ, News, Privacy Policy, and Terms & Conditions.
 * All pages share the same header, navigation, content, and footer styles.
 */

:root {
  --dda-navy: #003366;
  --dda-navy-dark: #002244;
  --dda-blue: #4da3ff;
  --dda-page-bg: #f7f7f7;
  --dda-text: #333;
  --dda-white: #fff;
  --dda-border: #ccc;
  --dda-note-bg: #f0f6ff;
}

/* Shared layout for all eight agency pages. */
body.site-page {
  font-family: Arial, sans-serif;
  margin: 0;
  background: var(--dda-page-bg);
  color: var(--dda-text);
}

.site-page header {
  background: var(--dda-navy);
  color: var(--dda-white);
  padding: 20px;
  text-align: center;
}

.site-page header p {
  margin: 4px 0;
}

.site-tagline {
  font-size: 1.3em;
  font-style: italic;
}

.header-phone {
  color: #cce0ff;
  text-decoration: none;
}

.header-link {
  color: #fff;
  text-decoration: none;
}

/* Primary navigation and the Resources dropdown. */
.site-page nav {
  background: var(--dda-navy-dark);
  padding: 10px;
  text-align: center;
}

.site-page nav a {
  color: var(--dda-white);
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}

.page-expensive nav a {
  white-space: nowrap;
}

.site-page nav .dropdown {
  display: inline-block;
  position: relative;
  margin: 0 15px;
}

.site-page nav .dropdown input[type="checkbox"] {
  display: none;
}

.site-page nav .dropbtn {
  background: none;
  border: none;
  color: var(--dda-white);
  font-weight: bold;
  font-family: inherit;
  font-size: 1em;
  cursor: pointer;
  padding: 0;
}

.site-page nav .dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: var(--dda-navy-dark);
  min-width: 200px;
  text-align: left;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.site-page nav .dropdown-content a {
  display: block;
  margin: 0;
  padding: 8px 15px;
  color: var(--dda-white);
  text-decoration: none;
  font-weight: normal;
}

/* Driving originally used wider dropdown-link margins and click-to-open. */
.page-driving nav .dropdown-content a {
  margin: 0 15px;
}

.site-page:not(.page-driving) nav .dropdown:hover .dropdown-content,
.site-page nav .dropdown input:checked + .dropbtn + .dropdown-content {
  display: block;
}

.site-page nav a:hover,
.site-page nav .dropbtn:hover {
  text-decoration: underline;
}

.site-page nav .dropdown-content a:hover {
  background: var(--dda-navy);
}

/* Content containers retain the original content-box width and padding. */
.site-page .container {
  max-width: 900px;
  margin: 20px auto;
  background: var(--dda-white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-page h2 {
  color: var(--dda-navy);
  border-bottom: 2px solid var(--dda-navy);
  padding-bottom: 5px;
}

.section-heading {
  color: var(--dda-blue);
  margin-top: 30px;
  border-bottom: 1px solid var(--dda-border);
  padding-bottom: 5px;
}

.subsection-heading {
  color: var(--dda-navy);
  margin-top: 20px;
  margin-bottom: 8px;
}

.page-howtosave ul,
.page-expensive ul {
  margin-top: 0;
  padding-left: 20px;
}

.page-driving ol {
  padding-left: 20px;
  margin-top: 0;
}

.page-driving ol li {
  margin-bottom: 15px;
}

.page-home img,
.page-faq img,
.page-driving img {
  max-width: 200px;
  border-radius: 8px;
  float: right;
  margin: 0 0 10px 20px;
}

.site-page #hours p {
  margin: 4px 0;
}

/* Notes and resource links. */
.site-page .tip-note {
  background: var(--dda-note-bg);
  border-left: 4px solid var(--dda-blue);
  padding: 10px 12px;
  margin: 15px 0;
  font-size: 0.95em;
}

.compact-list {
  margin-top: 8px;
  margin-bottom: 0;
}

.page-howtosave .resource-list li {
  margin-bottom: 6px;
}

.page-howtosave a.external-link,
.page-expensive a.external-link {
  color: var(--dda-navy);
  text-decoration: none;
  font-weight: bold;
}

.page-howtosave a.external-link:hover,
.page-expensive a.external-link:hover {
  text-decoration: underline;
}

/* Homepage banners, quote/bond buttons, and carrier logos. */
.holiday-banner {
  background: #ffefd6;
  color: #663c00;
  border-bottom: 2px solid #f0c36d;
  text-align: center;
  padding: 12px 16px;
  font-size: 0.95em;
  font-weight: bold;
}

.holiday-banner span {
  font-weight: normal;
}

.hiring-banner {
  background: #f5f7fa;
  border: 1px solid #d6dce5;
  border-radius: 6px;
  padding: 8px 14px;
  text-align: center;
  font-family: Arial, sans-serif;
  line-height: 1.2;
}

.hiring-banner strong {
  display: block;
  font-size: 17px;
  margin-bottom: 1px;
}

.hiring-banner span {
  display: block;
  margin: 0;
}

.hiring-banner a {
  font-weight: 600;
  text-decoration: none;
}

.hiring-banner a:hover {
  text-decoration: underline;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin: 15px 0;
}

.action-button {
  font-weight: bold;
  font-size: 1.1em;
  padding: 10px 20px;
  background: var(--dda-navy);
  color: var(--dda-white);
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
}

.page-home img.partner-logo {
  max-width: 180px;
  height: auto;
  margin: 0 0 10px 20px;
}

/* FAQ accordion; the existing page script still handles opening answers. */
.faq-item {
  margin-bottom: 10px;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 10px;
  font-size: 1em;
  background: var(--dda-navy);
  color: var(--dda-white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.faq-question:hover {
  background: var(--dda-navy-dark);
}

.faq-answer {
  display: none;
  padding: 10px;
  background: #f1f1f1;
  border-left: 3px solid var(--dda-navy);
  margin-top: 5px;
  border-radius: 4px;
}

/* Helpful Links. */
.link-item {
  margin-bottom: 25px;
}

.link-item h4 a {
  color: var(--dda-navy);
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
}

.link-item h4 a:hover {
  text-decoration: underline;
}

/* News-page worker-classification summary and ABC-test disclosures. */
.classification-heading {
  margin: 22px 0 8px;
  font-size: 1.05em;
}

.classification-heading a {
  color: var(--dda-navy);
}

.abc-test {
  margin: 15px 0;
}

.abc-test details {
  margin: 10px 0;
  background: var(--dda-page-bg);
  border: 1px solid var(--dda-border);
  border-radius: 6px;
}

.abc-test summary {
  padding: 10px 12px;
  color: var(--dda-navy);
  font-weight: bold;
  cursor: pointer;
}

.abc-test summary:hover,
.abc-test summary:focus-visible {
  background: var(--dda-note-bg);
}

.abc-test details[open] summary {
  background: var(--dda-note-bg);
  border-bottom: 1px solid var(--dda-border);
}

.abc-content {
  padding: 10px 16px 12px;
}

.abc-content > :first-child {
  margin-top: 0;
}

.abc-content > :last-child {
  margin-bottom: 0;
}

.bond-amount {
  margin: 0;
}

/* Charts on It's Not Just You. */
.page-expensive img.chart {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--dda-border);
  border-radius: 6px;
  margin: 15px 0;
}

/* Footer links appear at the bottom of every page. */
.site-page footer {
  text-align: center;
  padding: 20px;
  background: var(--dda-navy);
  color: var(--dda-white);
  margin-top: 40px;
}

.back-to-top {
  color: #cce0ff;
  text-decoration: none;
  font-weight: bold;
}

.footer-links a {
  display: inline-block;
  margin: 0 8px;
}

.site-page .footer-links a {
  color: #cce0ff;
}

@media (max-width: 600px) {
  .holiday-banner {
    font-size: 0.9em;
    padding: 10px 12px;
  }
}
