/* Custom Variables for IntelliBoard Aesthetic */
:root {
  --custom-border-radius: 6px;
  --custom-tile-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --custom-tile-hover-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ===== TRUST HUB HIGHLIGHT ===== */
.md-typeset .trust-hub-highlight {
  color: var(--md-primary-fg-color--darker);
  font-size: 1.2rem;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: color 0.3s ease, transform 0.3s ease;
}

.md-typeset .trust-hub-highlight:hover {
  color: var(--md-primary-fg-color--darker);
  transform: scale(1.03);
}

/* ===== ICON STYLING ===== */
.inline-icon,
.pillar-icon,
.button-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.pillar-icon {
  margin-right: 0.75rem;
  color: var(--md-primary-fg-color);
}

.button-icon {
  color: var(--md-default-bg-color--light);
}

.inline-icon {
  color: var(--md-text-color);
}

/* Card Icon Styling - for security.md and other enhanced cards */
.card-icon {
  width: 24px;
  height: 24px;
  stroke: var(--md-primary-fg-color) !important;
  fill: none !important;
  margin-right: 0.75rem;
  vertical-align: middle;
  flex-shrink: 0;
  color: var(--md-primary-fg-color) !important;
}

/* Ensure consistent icon colors in all enhanced cards */
.enhanced-cards .card-icon,
.enhanced-cards svg.card-icon {
  stroke: var(--md-primary-fg-color) !important;
  fill: none !important;
  color: var(--md-primary-fg-color) !important;
}

/* Icon and Title Layout - Make icons inline with titles */
.enhanced-cards li > .card-icon + h3,
.enhanced-cards li > .card-icon + h4 {
  display: inline;
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
}

/* Icon hover effects */
.pillar-icon:hover {
  color: var(--md-primary-fg-color--dark);
  transform: scale(1.1);
}

.button-icon:hover {
  color: var(--md-default-bg-color);
  transform: scale(1.05);
}

.inline-icon:hover {
  color: var(--md-primary-fg-color);
  transform: scale(1.05);
}

/* ===== ENHANCED CARDS LAYOUT ===== */
.enhanced-cards ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 1.5rem;
  background: var(--md-default-bg-color--light);
  border-radius: var(--custom-border-radius);
  box-shadow: var(--custom-tile-shadow);
}

.enhanced-cards li {
  background: linear-gradient(135deg, var(--md-default-bg-color), var(--md-default-bg-color--light));
  border-radius: var(--custom-border-radius);
  padding: 1.8rem;
  box-shadow: var(--custom-tile-shadow);
  transition: transform 0.4s ease;
  list-style: none;
}

.enhanced-cards li:hover {
  transform: translateY(-5px);
  box-shadow: var(--custom-tile-hover-shadow);
}

/* Enhanced Cards Typography */
.enhanced-cards h3 {
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: var(--md-primary-fg-color) !important;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid var(--md-primary-fg-color--transparent);
  padding-bottom: 0.5rem;
}

.enhanced-cards h4 {
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  color: var(--md-primary-fg-color) !important;
  margin: 0 0 0.75rem 0;
  text-transform: none;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--md-primary-fg-color--transparent);
  padding-bottom: 0.5rem;
}

.enhanced-cards p {
  margin: 0.75rem 0;
  color: var(--md-text-color);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ===== TRUST TABLE STYLING ===== */
.trust-table-container {
  margin: 1rem 0;
  overflow-x: auto;
}

.trust-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--md-default-bg-color);
  border-radius: var(--custom-border-radius);
  box-shadow: var(--custom-tile-shadow);
  overflow: hidden;
}

.trust-table thead {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  color: #ffffff;
}

.trust-table th {
  padding: 1.2rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
}

.trust-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
  vertical-align: top;
}

.trust-table tbody tr:hover {
  background: var(--md-default-bg-color--light);
  transform: translateX(2px);
  transition: all 0.3s ease;
}

.trust-table tbody tr:last-child td {
  border-bottom: none;
}

/* Status indicators */
.status-compliant,
.status-progress,
.status-review {
  background: var(--md-default-bg-color);
  color: var(--md-text-color);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
}

.status-compliant {
  border: 1px solid var(--md-primary-fg-color);
}

.status-compliant::before {
  content: "✓";
  color: var(--md-primary-fg-color);
  margin-right: 0.3rem;
  font-weight: bold;
}

.status-progress {
  border: 1px solid var(--md-accent-fg-color);
}

.status-progress::before {
  content: "⟳";
  color: var(--md-accent-fg-color);
  margin-right: 0.3rem;
  font-weight: bold;
}

.status-review {
  border: 1px solid var(--md-default-fg-color--light);
}

.status-review::before {
  content: "⏳";
  color: var(--md-default-fg-color--light);
  margin-right: 0.3rem;
  font-weight: bold;
}

/* ===== CEO MESSAGE STYLING ===== */
.ceo-message {
  margin: 2rem 0;
  padding: 2rem;
  background: transparent;
  border-radius: var(--custom-border-radius);
  box-shadow: var(--custom-tile-shadow);
}

.ceo-content {
  position: relative;
}

.ceo-image-section {
  float: right;
  margin: 0 0 1rem 1.5rem;
  width: 250px;
  height: 250px;
  position: relative;
  z-index: 2;
}

.ceo-portrait {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--md-primary-fg-color);
  box-shadow: 0 8px 25px rgba(0, 71, 179, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.ceo-portrait:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 71, 179, 0.5);
}

.ceo-text-section {
  text-align: left;
  background: transparent;
  position: relative;
  z-index: 1;
}

.ceo-signature {
  clear: both;
  margin-top: 1rem;
}

.ceo-title {
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  color: var(--md-text-color) !important;
  margin: 0 0 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-bottom: 0;
}

.ceo-intro {
  font-size: 1.8rem;
  line-height: 1.4;
  color: var(--md-primary-fg-color);
  margin: 0 0 1.5rem 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  padding-bottom: 0.5rem;
}

.ceo-quote {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--md-text-color);
  margin: 0;
  padding: 1.5rem;
  background: transparent;
  border-left: 6px solid var(--md-primary-fg-color);
  border-radius: var(--custom-border-radius);
  box-shadow: var(--custom-tile-shadow);
  position: relative;
}

.ceo-quote::before {
  content: '"';
  position: absolute;
  font-size: 3rem;
  color: var(--md-accent-fg-color--transparent);
  top: -10px;
  left: -10px;
  opacity: 0.3;
}

.ceo-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--md-primary-fg-color);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== ENHANCED QUOTE STYLING ===== */
.md-content .md-typeset .enhanced-quote {
  margin: 0;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.8;
  border-left: 6px solid var(--md-primary-fg-color);
  padding: 1.5rem;
  color: #404040;
  background-color: #ffffff;
  border-radius: var(--custom-border-radius);
  position: relative;
  overflow: hidden;
  max-width: 100%;
  box-shadow: var(--custom-tile-shadow);
}

[data-md-color-scheme="slate"] .md-content .md-typeset .enhanced-quote {
  color: #ffffff;
  background-color: #2c2c2c;
}

.md-content .md-typeset .enhanced-quote::before {
  content: '"';
  position: absolute;
  font-size: 3rem;
  color: var(--md-accent-fg-color--transparent);
  top: -10px;
  left: -10px;
  opacity: 0.3;
}

/* ===== MESSAGE CONTENT TEXT ===== */
.message-content-text {
  margin-top: 1rem;
  padding: 1.5rem;
  background: var(--md-default-bg-color);
  border-radius: var(--custom-border-radius);
  border-left: 4px solid var(--md-accent-fg-color--transparent);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.message-content-text:hover {
  transform: translateX(5px);
  opacity: 0.95;
}

.message-content-text p {
  margin: 0;
  color: var(--md-text-color);
  font-size: 1rem;
  line-height: 1.75;
}

/* ===== BUTTON STYLING ===== */
.md-button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border-radius: var(--custom-border-radius);
  background-color: var(--md-default-bg-color);
  color: var(--md-text-color);
  border: 2px solid var(--md-primary-fg-color);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.md-button:hover {
  background-color: var(--md-default-bg-color--light);
  color: var(--md-text-color);
  transform: translateY(-2px);
  border-color: var(--md-primary-fg-color--dark);
}

/* ===== ANIMATION EFFECTS ===== */
[data-animation] {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 0.1s;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ===== MOBILE RESPONSIVE DESIGN ===== */
@media screen and (max-width: 768px) {
  .enhanced-cards ul {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }
  
  .enhanced-cards li {
    padding: 1.2rem;
  }
  
  .enhanced-cards h3 {
    font-size: 1.2rem !important;
    margin: 0 0 0.8rem 0;
    letter-spacing: 0.5px;
  }
  
  .enhanced-cards h4 {
    font-size: 1.1rem !important;
    margin: 0 0 0.6rem 0;
    letter-spacing: 0.3px;
  }
  
  .ceo-message {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .ceo-content {
    text-align: center;
  }
  
  .ceo-image-section {
    float: none;
    margin: 1rem auto;
    width: 200px;
    height: 200px;
    position: relative;
    z-index: 2;
  }
  
  .ceo-text-section {
    margin: 0;
  }
  
  .ceo-signature {
    margin: 0;
  }
  
  .ceo-portrait {
    width: 100%;
    height: 100%;
  }
  
  .ceo-title {
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    color: var(--md-text-color) !important;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
  }
  
  /* Mobile responsive table */
  .trust-table {
    font-size: 0.9rem;
  }
  
  .trust-table th,
  .trust-table td {
    padding: 0.8rem 0.6rem;
  }
  
  .trust-table th {
    font-size: 1rem;
    letter-spacing: 0.5px;
  }
  
  .status-compliant,
  .status-progress,
  .status-review {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }
}