/*
 * Duke OIT Service Desk Equipment Checkout Site
 * Global Stylesheet
 * Last Updated: 2025-05-09
 * Author: Sinisa Hamaric
 */

/* --------------------------------------
   1. Branding Header
-------------------------------------- */
.duke-header {
  background-color: #001A57;
  padding: 10px 20px;
  border-bottom: 4px solid #00539b;
}

.duke-bar {
  display: flex;
  align-items: flex-end;
  max-width: 1200px;
  margin: 50 auto;
  height: 50px;
}

.duke-title {
  font-size: 1.5em;
  color: white;
  font-weight: bold;
  margin: 0;
  line-height: 1;
  display: flex;
  align-items: flex-end;
  margin-top: 10px; /* try increasing/decreasing this until aligned */
}

.duke-logo {
  height: 35px;
  margin-right: 20px;
  align-items: left;
}

/* --------------------------------------
   2. Typography and Body
-------------------------------------- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
}

/* --------------------------------------
   3. Layout Containers
-------------------------------------- */
.container {
  max-width: 1600px;
  margin: 40px auto;
  padding: 0 10px;
}

.content {
  display: flex;
  gap: 20px;
}

.main-content {
  flex: 1;
}

/* --------------------------------------
   4. Sidebar Navigation
-------------------------------------- */
.sidebar {
  width: 275px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-sizing: border-box;
  overflow: hidden;
  padding: 5px;
}

/* --------------------------------------
   5. Buttons and Links
-------------------------------------- */
.button,
.sub-button,
.sub-sub-button {
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 16px;
  background-color: #00539b;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.2s ease;
  margin-bottom: 3px;
}

.button:hover,
.sub-button:hover,
.sub-sub-button:hover {
  background-color: #003f7d;
}

.button.current,
.sub-button.current {
  background-color: #002b5c;
  border-left: 4px solid #ffcc00;
}

.sub-button {
  width: calc(100% - 15px);
  margin-left: 15px;
  text-align: left;
}

.sub-sub-button {
  width: calc(100% - 30px);
  margin-left: 30px;
  text-align: left;
}

details {
  margin-bottom: 10px;
}

details summary.button {
  cursor: pointer;
}

details[open] > summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

details a.sub-button {
  display: block;
  margin-left: 15px;
  margin-top: 5px;
}

/* --------------------------------------
   6. Cards and Grid Layouts
-------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  display: block;
}

.card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h2,
.card h3,
.card h4 {
  font-size: 1.1em;
  margin: 0 0 10px;
}

.card p {
  flex-grow: 1;
  font-size: 0.95em;
  color: #555;
}

.card a {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 16px;
  background-color: #00539b;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}

.card a:hover {
  background-color: #003f7d;
}

/* --------------------------------------
   7. Intro and Info Notes
-------------------------------------- */
.intro {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-bottom: 15px;
}

.info-note {
  margin-top: 10px;
  margin-bottom: 15px;
  font-size: 0.9em;
  color: #444;
  background: #fff7cc;
  padding: 5px;
  border-left: 4px solid #ffcc00;
  border-radius: 5px;
}

/* --------------------------------------
   8. Highlight Section
-------------------------------------- */
.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 15px;
}

.highlight {
  flex: 1 1 30%;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.highlight h3 {
  margin-top: 0;
  color: #003366;
  font-size: 1.1em;
}

.highlight p {
  font-size: 0.95em;
  color: #555;
}

/* --------------------------------------
   9. Footer
-------------------------------------- */
.site-footer {
  background-color: #001A57;
  color: white;
  padding: 20px;
  text-align: center;
  margin-top: 40px;
  font-size: 1.2em;
}

.site-footer a {
  color: #ffcc00;
  text-decoration: underline;
}

/* --------------------------------------
   10. Page Headers
-------------------------------------- */
.page-header {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-title {
  font-size: 2.2em;
  color: #001A57;
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: 5px;
}

.page-subtitle {
  font-size: 1.1em;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

.section-heading {
  font-size: 1.4em;
  font-weight: bold;
  color: #003366;
  margin: 10px 0 10px 0;
}

/* --------------------------------------
   11. Interactive Sidebar Elements
-------------------------------------- */
.sub-button-group button.sub-button {
  all: unset;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 16px;
  background-color: #00539b;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.2s ease;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 1em;
}

.sub-button-group button.sub-button:hover {
  background-color: #003f7d;
}

.sidebar-media,
.sidebar-images {
  margin: 0;
  padding: 0;
}

.sidebar-media {
  margin-bottom: 8px;
}

.sidebar-media video,
.sidebar-images img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0;
  padding: 0;
}

.sidebar-images img {
  margin-bottom: 8px;
}

video::-webkit-media-controls {
  display: none !important;
}

/* --------------------------------------
   12. More Services Section
-------------------------------------- */
.more-services {
  margin: 40px 0;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.more-services .highlight ul {
  list-style: none;
  padding-left: 0;
  font-size: 0.95em;
  color: #333;
}

.more-services .highlight ul li {
  margin-bottom: 10px;
  padding-left: 1.5em;
  position: relative;
}

.more-services .highlight ul li::before {
  content: "✔";
  color: #00539b;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.loan-period {
  font-size: 0.9em;
  color: #333;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .sidebar-media,
  .sidebar-images {
    margin-bottom: 8px;
  }
}

.nav-list {
  display: flex;
  gap: 8px; /* reduce this value to control spacing */
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list li {
  margin: 0;
  padding: 0;
}

.guide-screenshot {
  display: block;
  max-width: 100%;
  width: 600px;
  height: auto;
  margin: 20px auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.step-caption {
  text-align: center;
  font-size: 0.95em;
  color: #444;
  margin-top: 5px;
  margin-bottom: 30px;
}

.card img {
  width: 100%;
  height: 200px;
  border-radius: 6px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  object-fit: contain;
}

/* --------------------------------------
   Footer Styles
-------------------------------------- */
.site-footer {
  background-color: #001A57;
  color: #ffffff;
  padding: 30px 20px;
  font-size: 0.95rem;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: flex-start;
  gap: 20px;
  text-align: center;
}

.footer-main {
  grid-column: 2 / 3;
  text-align: center;
}

.footer-hours {
  flex: 1;
  min-width: 250px;
  text-align: left;
}

.footer-hours p {
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-hours ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-hours li {
  margin-bottom: 4px;
}

.footer-main {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.footer-main p {
  margin: 5px 0;
}

.footer-main a {
  color: #ffcc00;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  font-size: 1.2em;
}

.footer-social a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: #ffcc00;
}

.footer-bottom {
  margin-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #ccc;
}

.footer-bottom a {
  color: #ffcc00;
  text-decoration: underline;
  margin: 0 5px;
}

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

.footer-legal-social {
  flex: 1;
  min-width: 250px;
  text-align: right;
}

.footer-social-icons {
  margin-bottom: 10px;
}

.footer-social-icons a {
  color: #ffffff;
  margin-left: 10px;
  font-size: 1.6rem;
  transition: color 0.2s ease;
}

.footer-social-icons a:hover {
  color: #ffcc00;
}

.footer-legal {
  font-size: 0.85rem;
}

.footer-legal a {
  color: #ffcc00;
  text-decoration: underline;
}

.footer-legal a:hover {
  text-decoration: none;
}

.faq-list details {
  background: #fff;
  border-radius: 6px;
  padding: 10px 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-list summary {
  cursor: pointer;
  font-size: 1em;
}

.faq-list p {
  margin: 10px 0 0 0;
  font-size: 0.95em;
  color: #333;
}

html {
  scroll-behavior: smooth;
}