/* overrides/assets/stylesheets/palette.css */
:root {
  --md-primary-fg-color: #2563eb;
  --md-primary-bg-color: #ffffff;
}

/* Header styling - Dark Gray */
.md-header {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  border-bottom: 2px solid #1a1a1a;
}

.md-header__inner {
  background: transparent;
}

.md-header__button {
  color: #ffffff;
}

.md-header__button:hover {
  color: #cccccc;
}

.md-header__title {
  color: #ffffff;
}

.md-header__title:hover {
  color: #cccccc;
}

/* Navigation tabs styling */
.md-tabs {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  border-bottom: 2px solid #1a1a1a;
}

.md-tabs__link {
  color: rgba(255, 255, 255, 0.9);
}

.md-tabs__link:hover {
  color: #ffffff;
}

.md-tabs__link--active {
  color: #ffffff;
  border-bottom: 2px solid #ffffff;
}

/* Guide sections styling */
.guide-section {
  margin: 1rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-left: 4px solid var(--md-primary-fg-color);
  border-radius: 0 8px 8px 0;
  line-height: 1.6;
}

.guide-section h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  display: block;
}

.guide-section h3:not(:first-child) {
  margin-top: 1.5rem;
}

.guide-section p {
  margin-bottom: 1rem;
  color: #666;
  display: block;
}

/* Ensure proper spacing between elements */
.guide-section > * {
  margin-bottom: 0.75rem;
}

.guide-section > *:last-child {
  margin-bottom: 0;
}

/* Improve spacing for guide links */
.guide-section h3 a {
  text-decoration: none;
  color: var(--md-primary-fg-color);
  font-weight: 600;
  display: block;
}

.guide-section h3 a:hover {
  text-decoration: underline;
}

/* Image zoom functionality */
.zoomable-image {
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.zoomable-image:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Zoom modal overlay */
.zoom-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.zoom-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.zoom-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.zoom-modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Corporate Footer Styling - Ultra Compact */
.md-footer {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  color: #ffffff;
  border-top: 2px solid #1a1a1a;
}

/* Footer content styling - Ultra Compact */
.md-footer__inner {
  padding: 0.5rem 0;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.md-footer__content {
  text-align: center;
}

.md-footer__text {
  text-align: center;
}

.md-footer__inner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.65rem;
  margin: 0.1rem 0;
  text-align: center;
  line-height: 1.1;
}

.md-footer__inner p:first-child {
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.md-footer__inner p:last-child {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.1rem;
}

.md-footer__inner a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.md-footer__inner a:hover {
  color: #cccccc;
  text-decoration: underline;
}

/* FAQ Styling */
.faq-section {
  margin-bottom: 3rem;
}

.faq-section h2 {
  border-bottom: 2px solid var(--md-primary-fg-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--md-primary-fg-color);
}

/* Style FAQ section headers */
h2 {
  border-bottom: 2px solid var(--md-primary-fg-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--md-primary-fg-color);
}

/* Style FAQ questions and sections */
h2, h3 {
  font-weight: 600;
  color: var(--md-primary-fg-color);
  margin-bottom: 0.5rem;
  font-size: 1.1em;
  line-height: 1.4;
  padding: 0.75rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Hover effect for FAQ questions and sections */
h2:hover, h3:hover {
  background: rgba(0, 82, 255, 0.1);
  color: #0038cc;
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0, 82, 255, 0.2);
}

/* Visual indicator for clickable FAQ questions and sections */
h2[id], h3[id] {
  position: relative;
}

h2[id]:after, h3[id]:after {
  content: "🔗";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  font-size: 0.8em;
}

h2[id]:hover:after, h3[id]:hover:after {
  opacity: 1;
}

/* Style FAQ answers - paragraphs after h3 questions */
h3 + p,
h3 + p + p,
h3 + p + p + p,
h3 + p + p + p + p,
h3 + p + p + p + p + p {
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.6;
}

/* Style FAQ answers - lists after h3 questions */
h3 + ul,
h3 + ol,
h3 + p + ul,
h3 + p + ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

h3 + ul li,
h3 + ol li,
h3 + p + ul li,
h3 + p + ol li {
  margin-bottom: 0.5rem;
  color: #333;
}

/* Style FAQ answers - blockquotes after h3 questions */
h3 + blockquote,
h3 + p + blockquote {
  background: rgba(0, 82, 255, 0.05);
  border-left: 3px solid var(--md-primary-fg-color);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 4px 4px 0;
}

h3 + blockquote p,
h3 + p + blockquote p {
  margin-bottom: 0;
  color: #555;
  font-style: italic;
}

.faq-question {
  font-weight: 600;
  color: var(--md-primary-fg-color);
  margin-bottom: 0.5rem;
  font-size: 1.1em;
  line-height: 1.4;
}

.faq-answer {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-left: 4px solid var(--md-primary-fg-color);
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(0, 82, 255, 0.1);
  line-height: 1.6;
}

.faq-answer p {
  margin-bottom: 1rem;
  color: #333;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul, .faq-answer ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.faq-answer li {
  margin-bottom: 0.5rem;
  color: #333;
}

.faq-answer strong {
  color: var(--md-primary-fg-color);
  font-weight: 600;
}

.faq-answer blockquote {
  background: rgba(0, 82, 255, 0.05);
  border-left: 3px solid var(--md-primary-fg-color);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 4px 4px 0;
}

.faq-answer blockquote p {
  margin-bottom: 0;
  color: #555;
  font-style: italic;
}

.faq-toc {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-toc h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--md-primary-fg-color);
  font-size: 1.2em;
}

.faq-toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.faq-toc li {
  margin-bottom: 0.5rem;
}

.faq-toc a {
  color: var(--md-primary-fg-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
  display: block;
  transition: color 0.2s ease;
}

.faq-toc a:hover {
  color: #0038cc;
  text-decoration: underline;
}

.faq-search {
  background: rgba(0, 82, 255, 0.1);
  border: 1px solid rgba(0, 82, 255, 0.2);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--md-primary-fg-color);
  font-weight: 500;
}

/* Collapsible FAQ items */
.faq-collapsible {
  margin-bottom: 1rem;
}

.faq-collapsible summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--md-primary-fg-color);
  padding: 0.75rem;
  background: rgba(0, 82, 255, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(0, 82, 255, 0.1);
  transition: background-color 0.2s ease;
}

.faq-collapsible summary:hover {
  background: rgba(0, 82, 255, 0.1);
}

.faq-collapsible[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
}

.faq-collapsible .faq-answer {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .zoom-modal-content {
    max-width: 95%;
    max-height: 95%;
  }
  
  .zoom-modal-close {
    top: 10px;
    right: 15px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }
  
  .md-footer__inner {
    padding: 0.4rem 0;
    max-width: 95%;
  }
  
  .md-footer__inner p:first-child {
    font-size: 0.65rem;
  }
  
  .md-footer__inner p {
    font-size: 0.55rem;
  }
  
  .md-footer__inner p:last-child {
    font-size: 0.55rem;
  }
  
  .faq-answer {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .faq-toc {
    padding: 1rem;
  }
  
  .faq-section h2 {
    font-size: 1.3em;
  }
  
  /* Mobile hover effects for FAQ questions and sections */
  h2, h3 {
    padding: 0.5rem;
  }
  
  h2:hover, h3:hover {
    transform: translateX(2px);
  }
  
  /* Mobile styles for FAQ anchor indicators */
  h2[id]:after, h3[id]:after {
    right: 0.25rem;
    font-size: 0.7em;
  }
}