/**
 * @file theme.css
 * shadcn/ui-compatible theme variables for ByteTheme.
 *
 * You can customize these values without rebuilding the compiled CSS.
 * Tools like https://tweakcn.com can help generate these values.
 */

:root {
  /* 1. Base Colors - Neutral Light Theme */
  --brand-purple: #866AB4; /* Added your specific color hex */
  --background: oklch(0.95 0.007 277.161); /* #f1f1f1 equivalent */
  --foreground: oklch(0.25 0.02 265); /* Deep charcoal for main text */

  /* 2. Containers & Inputs */
  --card: oklch(1 0 0); /* Pure white background for form boxes */
  --card-foreground: var(--foreground);
  --popover: oklch(1 0 0);
  --popover-foreground: var(--foreground);

  /* 3. The "Invisibles" - This fixes your "Change to" label */
  --muted: oklch(0.92 0.01 265);
  --muted-foreground: oklch(0.45 0.02 265); /* Dark enough to read on light grey */

  /* 4. Primary - This fixes the "Apply" button and selection */
  --primary: oklch(0.55 0.20 262); /* Solid blue */
  --primary-foreground: oklch(0.99 0 0); /* Bright white text on blue bg */

  /* 5. Secondary - Fixes the unselected dropdown state */
  --secondary: oklch(0.90 0.02 265);
  --secondary-foreground: oklch(0.25 0.02 265); /* Dark text for unselected items */

  /* 6. UI Borders */
  --border: oklch(0.80 0.02 265); /* Visible borders for inputs */
  --input: oklch(0.80 0.02 265);
  --radius: 0.5rem;

  /* Keep your existing spacing/navbar variables below */
  --navbar-height: calc(var(--spacing) * 15);
  @media (min-width: 768px) {
    --navbar-height: calc(var(--spacing) * 18);
  }
}

/* Explicit fix for the dropdowns shown in your screenshots */
select, .form-select {
  background-color: var(--card) !important;
  color: var(--foreground) !important;
  border: 1px solid var(--border) !important;
}

/* Fix for the 'Change to' and other labels */
label, .form-item__label {
  color: var(--foreground) !important;
}

h1, h2, h3, .heading-style-class {
  color: var(--brand-purple);
}
.accordion-item {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  margin-bottom: 8px;
  border-radius: 4px;
}

.accordion-header {
  padding: 15px;
  font-weight: bold;
  cursor: pointer;
  list-style: none; /* Removes default arrow in some browsers */
  position: relative;
}

/* Custom Arrow indicator */
.accordion-header::before {
  content: '▼';
  font-size: 0.8em;
  margin-right: 10px;
}

.accordion-item[open] .accordion-header::before {
  content: '▲';
}

.accordion-content {
  padding: 15px;
  background: #fff;
  border-top: 1px solid #ddd;
}

.accordion-content a {
  display: block;
  color: #0056b3;
  text-decoration: none;
  margin-bottom: 5px;
}



/* Scope everything to your specific node type */
.page-node-type-accordion-page {
  font-family: 'Montserrat', sans-serif;
}

/* -----------------------------------------
   MAIN CONTENT REORDERING
   Forces Contact Info above the Description
----------------------------------------- */
.page-node-type-accordion-page article > div:last-child {
  display: flex;
  flex-direction: column;
}

/* 1. Contact Info Container */
.page-node-type-accordion-page article > div:last-child > div:nth-child(4),
.page-node-type-accordion-page article > div:last-child > div:nth-child(3) {
  order: 1;
}

/* 2. Accordion Description Container */
.page-node-type-accordion-page article > div:last-child > div:nth-child(1) {
  order: 2;
  margin-top: 20px;
}

/* 3. The Accordions Container */
.page-node-type-accordion-page article > div:last-child > div:nth-child(2) {
  order: 3;
}

/* -----------------------------------------
   HIDE THE DRUPAL FIELD LABELS & FILE SIZE
----------------------------------------- */
.page-node-type-accordion-page article > div:last-child > div > div:first-child,
.page-node-type-accordion-page .paragraph--type--accordion-group > div:nth-child(1) > div:first-child,
.page-node-type-accordion-page .paragraph--type--accordion-group > div:nth-child(2) > div:first-child,
.page-node-type-accordion-page .paragraph--type--accordion-item > div:nth-child(2) > div:first-child {
  display: none !important;
}

/* Hide the entire Document upload wrapper (which hides the file size and raw filename) */
.page-node-type-accordion-page .paragraph--type--accordion-item > div:nth-child(1) {
  display: none !important;
}

/* -----------------------------------------
   DESCRIPTION & CONTACT STYLING (Inherits default color)
----------------------------------------- */
.page-node-type-accordion-page article > div:last-child > div:nth-child(1) p,
.page-node-type-accordion-page article > div:last-child > div:nth-child(4) p {
  font-size: 16px;
  /* Inheriting theme default text color */
}

/* "Health Studies learning area contacts:" heading style */
.page-node-type-accordion-page article > div:last-child > div:nth-child(3) > div:nth-child(2) {
  font-size: 18px;
  font-weight: 600;
  margin: 25px 0 20px;
}

/* -----------------------------------------
   ACCORDION GROUP
----------------------------------------- */
.page-node-type-accordion-page .paragraph--type--accordion-group {
  display: flex;
  flex-direction: column-reverse;
  margin-bottom: 10px;
}

/* ACCORDION TITLE (Syllabus, Grading) */
.page-node-type-accordion-page .paragraph--type--accordion-group > div:nth-child(2) {
  background-color: #f5f5f5;
  color: #000; /* Ensuring the title is black */
  padding: 15px 20px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  position: relative;
  transition: background-color 0.2s ease;
}
div p, .contextual-region div{
  color: #0a0a0a;
}

.page-node-type-accordion-page .paragraph--type--accordion-group > div:nth-child(2):hover {
  background-color: #e9e9e9;
}

.page-node-type-accordion-page .paragraph--type--accordion-group > div:nth-child(2)::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #000; /* Plus icon matches the black text */
}

.page-node-type-accordion-page .paragraph--type--accordion-group > div:nth-child(1) {
  display: none;
  padding: 20px;
  border: 1px solid #151414;
  border-top: none;
  border-radius: 0 0 4px 4px;
}

.page-node-type-accordion-page .paragraph--type--accordion-group.is-open > div:nth-child(1) {
  display: block;
}
.page-node-type-accordion-page .paragraph--type--accordion-group.is-open > div:nth-child(2) {
  background-color: #e5e5e5;
  border-radius: 4px 4px 0 0;
}
.page-node-type-accordion-page .paragraph--type--accordion-group.is-open > div:nth-child(2)::after {
  content: '−';
}

/* -----------------------------------------
   NEW ITEM LAYOUT: ICON + DOCUMENT NAME
----------------------------------------- */
.page-node-type-accordion-page .paragraph--type--accordion-item {
  display: flex;
  align-items: center; /* Puts the icon and the name perfectly inline */
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #eaeaea;
}

.page-node-type-accordion-page .paragraph--type--accordion-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Document Icon placed directly before the link */
.page-node-type-accordion-page .paragraph--type--accordion-item::before {
  content: '📄';
  margin-right: 10px;
  font-size: 16px;
  filter: grayscale(100%);
}

/* The Document Name Link */
.page-node-type-accordion-page .paragraph--type--accordion-item a.doc-name-link {
  color: #0056b3;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-node-type-accordion-page .paragraph--type--accordion-item a.doc-name-link:hover {
  text-decoration: underline;
  color: #003d82;
}

/* Inject FontAwesome User Icon before the bold name */
.page-node-type-accordion-page article > div:last-child > div:nth-child(4) p strong::before {
  content: '\f007'; /* FontAwesome user icon */
  font-family: 'FontAwesome';
  font-weight: normal;
  margin-right: 8px;
  color: #333;
}

/* Style the email link to look like a standard link */
.page-node-type-accordion-page article > div:last-child > div:nth-child(4) p a {
  color: #0056b3;
  text-decoration: none;
}

/* Add hover effect for the email link */
.page-node-type-accordion-page article > div:last-child > div:nth-child(4) p a:hover {
  text-decoration: underline;
  color: #003d82;
}

/* Add white border and padding to the contact info block */
.page-node-type-accordion-page article > div:last-child > div:nth-child(4) {
  border: 1px solid #151414; /* White border */
  padding: 10px;             /* Space between the text and the border */
  border-radius: 4px;        /* Matches the accordion corners */
}

/* -----------------------------------------
   FOOTER STARTS HERE
----------------------------------------- */
#footer-container {
  background: #fbfbfb; /* Dark blue background from SCSA theme */
  color: #565656;
  font-family: Arial, Helvetica, sans-serif;
}

.footer-menu ul li a, .copyright ul li a, .contact-details h5 a{
  text-decoration: underline;
}

#footer-first-content {
  background-color: #fbfbfb;
  padding: 40px 0;
  border-top: 1px solid #efefef; /* Accent blue border */
}

#footer-second-content {
  background-color: #f1f1f1; /* Darker bottom strip */
  padding: 20px 0;
  font-size: 0.85rem;
}

.wrapper {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

#footer-first {
  display: flex;
  flex-direction: row;
  gap: 40px;
}

#footer-first section {
  flex: 1;
  min-width: 250px;
}

#footer-first h5 {
  color: #565656;
  font-size: 1.2rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-weight: bold;
}

#footer-first h5 a {
  color: #565656;
}

.contact-details h5 a, .contact-details p a {
  color: #215986 !important;
}

#footer-first ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer-first ul li {
  margin-bottom: 8px;
}

#footer-first a {
  color: #565656;
  transition: color 0.2s;
  text-decoration: underline;
}

#footer-first a:hover {
  color: #565656;
  text-decoration: underline;
}

#footer-first p {
  margin-bottom: 10px;
  line-height: 1.5;
}

#footer-second {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#footer-second-content .gov-link {
  float: left;
  display: block;
  margin-right: 2.35765%;
  width: 23.23176%;
}

#footer-second-content .gov-link a {
  font-size: 1.53em;
  color: #565656;
}

#footer-second .copyright {
  text-align: right;
}

#footer-second .copyright ul {
  list-style: none;
  padding: 0;
  margin-bottom: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

#footer-second .copyright ul li a {
  color: #565656;
}

#footer-second .copyright ul li a:hover {
  color: #565656;
}

#footer-second p {
  color: #999;
  margin: 0;
}

/* Hide helper text */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 768px) {
  #footer-first, #footer-second {
    flex-direction: column;
    text-align: center;
  }

  #footer-second .copyright ul {
    justify-content: center;
    flex-wrap: wrap;
  }

  #footer-second .gov-link {
    margin-bottom: 20px;
  }
}




#pre-header {
  background: #4d4d4d;
  height: 27px;
  border-bottom: 1px solid #7d7d7d;
}

#pre-header-content ul {
  float: right;
  margin: 0;
  padding: 0;
  list-style: none;
}

#pre-header-content li {
  float: left;
  border-left: 1px solid #7d7d7d;
}

#pre-header-content li a {
  display: block;
  padding: 0 10px;
  color: #fff;
  font-size: 13px;
  line-height: 27px;
  text-decoration: none;
}

#pre-header-content li a:hover {
  text-decoration: underline;
}

#main-header {
  background: #4d4d4d;
  padding: 15px 0 20px;
  position: relative;
  z-index: 99;
}

#header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#logo {
  padding: 10px;
  margin-top: -15px; /* Aligns with the top of the header */
}

#logo img {
  max-height: 100px;
  display: block;
}

#utilities {
  text-align: right;
}

.search fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
}

#search-term {
  height: 40px;
  width: 250px;
  padding: 0 10px;
  border: none;
  font-size: 14px;
}

#search-submit-button {
  background: #43a047; /* SCSA Green */
  border: none;
  width: 45px;
  height: 40px;
  cursor: pointer;
  color: #fff;
}

.wa-gov-search {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
}

.wa-gov-search:hover {
  text-decoration: underline;
}

#tab-nav-container {
  background: #4d4d4d;
  border-top: 1px solid #7d7d7d;
}

.nav-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item a {
  display: block;
  padding: 12px 20px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
}

/* The "White Tab" effect for active links */
.nav-item.active a {
  background: #fff;
  color: #333;
  border-top: 4px solid #7a5197; /* Purple accent on top */
}

.nav-item.login a {
  color: #fff;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.header::after {
  content: "";
  display: table;
  clear: both;
}

.region-header{
display: none;
}

body {
  background-color: var(--background);
  color: var(--foreground);
}

#pre-header-content {
  display: flex;
  justify-content: flex-end; /* Pushes content to the right */
}

.pre-header-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pre-header-links li {
  margin-left: 20px; /* Spacing between items */
}

#secondary-menu-container {
  background-color: #ffffff; /* White background */
  border-top: 1px solid #eeeeee; /* Optional: adds definition */
  width: 100%;
  padding: 10px 0;
}

#secondary-menu-container .wrapper {
  /* Aligns the menu content with the rest of your site's grid */
}

#secondary-menu-white-bar {
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
  padding: 12px 0;
  width: 100%;
}

/* Make "About" and "Careers" sit horizontally */
#secondary-menu-white-bar ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

#secondary-menu-white-bar a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
}
/* 1. Right-align the Pre-Header Links */
#pre-header-content {
  display: flex;
  justify-content: flex-end; /* Pushes list to the right */
}

.pre-header-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  gap: 20px;
}

/* 2. Style the White Sub-Menu Bar */
#secondary-nav-white-bar {
  background-color: #ffffff; /* White background as requested */
  border-bottom: 1px solid #ebebeb;
  width: 100%;
  padding: 15px 0;
}

.sub-menu-hardcoded {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 50px; /* Spacing between abcd items */
}

.sub-menu-hardcoded li a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.sub-menu-hardcoded li a:hover {
  text-decoration: underline;
  color: #007bff; /* Adjust to your brand blue */
}


