.noteBoxes
{
	border: 1px solid;
	border-radius: 10px;
	padding: 20px 10px 10px 5px;
	margin: 2px;
	width: 60%;
	position: relative;
	display: inline-block;
}

.referenceBoxes
{
	border: 1px solid;
	border-radius: 5px;
	padding: 10px;
	margin: 2px;
	font-size: 75%;
	position: relative;
	max-width: 300px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: inline-block;
}

.type1
{
	border-color: #E76F51;
	background-color: rgba(231, 111, 81, 0.1); 
}

.type2
{
	border-color: #2A9D8F;
	background-color: rgba(42, 157, 143, 0.1); 
}

.type3
{
	border-color: #0096C7;
	background-color: rgba(0, 150, 199, 0.1); 
}

.type4
{
	border-color: #00B353;
	background-color: rgba(0, 179, 83, 0.1); 
}

.picture
{
	width: 15px;
	padding-right: 10px;
}

.icon
{
	width: 16px;
	height: 16px;
}

.code-reference {
	border: 1px solid #0096C7;
	background-color: rgba(0, 150, 199, 0.1);
	padding: 10px 15px;
	margin: 15px 0;
	border-radius: 5px;
	font-size: 14px;
}

.code-reference i {
	margin-right: 8px;
	color: #0096C7;
}

table {
	border-collapse: collapse;
	width: 100%;
}

td {
	border: none;
}

/* Navbar styles moved to custom-head.html for better specificity */

/* Ensure navigation items are visually distinct but compact */
.greedy-nav .visible-links a {
	padding: 0.25rem 0.5rem;
}

/* Adjust for smaller screens to maintain readability */
@media (max-width: 64em) {
	.greedy-nav a {
		margin: 0 0.25rem; /* Even more compact on smaller screens */
	}
}

/* Advanced Topics Note Styling */
.notice--warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.notice--warning h4 {
    margin-top: 0;
    color: #856404;
}

/* Cross-linking System Colors */
:root {
    --skill-nav-bg: #f8f9fa;
    --skill-nav-border: #dee2e6;
    --helper-bg: #f0f7ff;
    --helper-border: #d0e3ff;
    --disclosure-bg: #fff;
    --disclosure-border: #e0e0e0;
    --breadcrumb-bg: #f8f9fa;
    --breadcrumb-border: #e0e0e0;
    --map-bg: #fff;
    --map-border: #e0e0e0;
}

/* Dark mode support for cross-linking */
@media (prefers-color-scheme: dark) {
    :root {
        --skill-nav-bg: #1a1a1a;
        --skill-nav-border: #333;
        --helper-bg: #1a1a1a;
        --helper-border: #333;
        --disclosure-bg: #1a1a1a;
        --disclosure-border: #333;
        --breadcrumb-bg: #1a1a1a;
        --breadcrumb-border: #333;
        --map-bg: #1a1a1a;
        --map-border: #333;
    }
}
.advanced-note {
	border: 2px solid #f39c12;
	border-radius: 8px;
	padding: 15px 20px;
	margin: 20px 0;
	background-color: #fef5e7;
	position: relative;
}

.advanced-note i {
	color: #e67e22;
	margin-right: 8px;
}

.advanced-note p {
	margin: 0;
	color: #7a4e0c;
	font-size: 0.95em;
}

.advanced-note a {
	color: #d35400;
	font-weight: 600;
	text-decoration: underline;
}

.advanced-note a:hover {
	color: #e67e22;
	text-decoration: none;
}

/* ============================================
   Key Insights and Card Layout Styles
   ============================================ */

.key-insights {
  display: flex !important;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.insight-card {
  flex: 1 1 200px !important;
  min-width: 200px;
  max-width: 320px;
  background: #f8f9fa;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e9ecef;
}

.insight-card i {
  font-size: 1.5rem;
  color: #4facfe;
  display: block;
  margin-bottom: 0.5rem;
}

.insight-card h4 {
  margin: 0.5rem 0 0.25rem 0 !important;
  font-size: 1rem;
  color: #333;
}

.insight-card p {
  margin: 0 !important;
  font-size: 0.9rem;
  color: #666;
}

/* Intro Card */
.intro-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.intro-card .lead-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
}

/* AI Type Cards */
.ai-types-section {
  display: flex !important;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.ai-type-card {
  flex: 1 1 280px;
  min-width: 280px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
}

.ai-type-card h3 {
  margin-top: 0 !important;
}

.ai-type-card.narrow-ai {
  border-left: 4px solid #28a745;
}

.ai-type-card.general-ai {
  border-left: 4px solid #ffc107;
}

/* ML Type Cards */
.ml-type-card {
  flex: 1 1 280px;
  min-width: 280px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 0.5rem 0;
}

.ml-type-card h4 {
  margin-top: 0 !important;
}

.ml-type-card.supervised {
  border-left: 4px solid #007bff;
}

.ml-type-card.unsupervised {
  border-left: 4px solid #17a2b8;
}

.ml-type-card.reinforcement {
  border-left: 4px solid #6f42c1;
}

/* Algorithm Cards */
.algorithm-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.algorithm-card h4 {
  margin-top: 0 !important;
  color: #333;
}

/* Architecture Cards */
.architecture-cards {
  display: flex !important;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.arch-card {
  flex: 1 1 280px;
  min-width: 280px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
}

.arch-card h4 {
  margin-top: 0 !important;
}

.arch-card.cnn { border-left: 4px solid #e74c3c; }
.arch-card.rnn { border-left: 4px solid #3498db; }
.arch-card.lstm { border-left: 4px solid #9b59b6; }
.arch-card.transformer { border-left: 4px solid #1abc9c; }

/* Challenge Cards */
.challenge-cards {
  display: flex !important;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

.challenge-card {
  flex: 1 1 200px;
  min-width: 200px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 1rem;
}

.challenge-card h4 {
  margin-top: 0 !important;
  font-size: 0.95rem;
}

.challenge-card p {
  margin-bottom: 0 !important;
  font-size: 0.9rem;
}

/* Generic Feature/Content Cards */
.feature-card,
.driver-card,
.tip-card,
.takeaway-card,
.principle-card,
.phenomenon-card,
.pattern-card,
.example-card,
.postulate-card,
.exponent-card,
.nav-card,
.theory-card,
.transition-card,
.string-card,
.stat-card,
.step-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.25rem;
  margin: 0.75rem 0;
}

.feature-card h4,
.driver-card h4,
.tip-card h4,
.takeaway-card h4,
.principle-card h4,
.phenomenon-card h4,
.pattern-card h4,
.example-card h4,
.postulate-card h4,
.exponent-card h4,
.nav-card h4,
.theory-card h4,
.transition-card h4,
.string-card h4,
.stat-card h4,
.step-card h4 {
  margin-top: 0 !important;
  color: #333;
}

/* Colored accent variants */
.tip-card {
  border-left: 4px solid #17a2b8;
  background: #e7f5ff;
}

.takeaway-card {
  border-left: 4px solid #28a745;
  background: #d4edda;
}

.postulate-card {
  border-left: 4px solid #007bff;
  background: #e7f1ff;
}

/* Mathematical Foundations */
.mathematical-foundations {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.mathematical-foundations h3 {
  color: white !important;
  margin-top: 0 !important;
}

.mathematical-foundations p {
  margin-bottom: 0 !important;
  opacity: 0.95;
}

/* Grid Layouts */
.command-grid,
.theories-grid,
.takeaway-grid,
.pros-cons-grid,
.quick-start-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

/* Reference Card Styling */
.reference-card {
  background: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  border-radius: 8px !important;
  padding: 1.5rem !important;
  margin: 1.5rem 0 !important;
}

.reference-card h4 {
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
  color: #333 !important;
  border-bottom: 2px solid #0066cc !important;
  padding-bottom: 0.5rem !important;
}

.reference-card pre {
  margin: 1rem 0 !important;
  border-radius: 6px !important;
}

.reference-card table {
  margin: 1rem 0 !important;
}

.reference-footer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  padding: 2rem !important;
  border-radius: 8px !important;
  margin-top: 2rem !important;
}

.reference-footer h2 {
  color: white !important;
  margin-top: 0 !important;
}

.reference-footer a {
  color: #fff !important;
  text-decoration: underline !important;
}

.reference-footer .footer-links {
  margin-top: 1rem !important;
}

.reference-footer .footer-links a {
  margin: 0 0.25rem !important;
}

/* Docker Fundamentals Grid Layouts */
.problem-grid,
.solution-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 1.25rem !important;
  margin: 1.5rem 0 !important;
}

.problem-item,
.solution-item {
  background: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  border-radius: 8px !important;
  padding: 1.25rem !important;
}

.problem-item {
  border-left: 4px solid #dc3545 !important;
}

.solution-item {
  border-left: 4px solid #28a745 !important;
}

.problem-item h4,
.solution-item h4 {
  margin-top: 0 !important;
  font-size: 1rem !important;
}

.problem-item i,
.solution-item i {
  display: block !important;
  font-size: 1.5rem !important;
  margin-bottom: 0.5rem !important;
  color: #666 !important;
}

/* Pros/Cons Grid */
.pros-cons-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1.5rem !important;
  margin: 1rem 0 !important;
}

.pros-section,
.cons-section {
  background: #f8f9fa !important;
  border-radius: 8px !important;
  padding: 1.25rem !important;
}

.pros-section {
  border-left: 4px solid #28a745 !important;
}

.cons-section {
  border-left: 4px solid #dc3545 !important;
}

.pro-item,
.con-item {
  padding: 0.75rem 0 !important;
  border-bottom: 1px solid #e9ecef !important;
}

.pro-item:last-child,
.con-item:last-child {
  border-bottom: none !important;
}

.pro-item h4,
.con-item h4 {
  margin: 0 0 0.25rem 0 !important;
  font-size: 0.95rem !important;
}

.pro-item p,
.con-item p {
  margin: 0 !important;
  font-size: 0.875rem !important;
  color: #666 !important;
}

/* Example sections */
.command-examples {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
}

.example-section {
  background: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  border-radius: 8px !important;
  padding: 1.25rem !important;
}

.example-section h4 {
  margin-top: 0 !important;
}

/* SVG Visual Constraints */
.ml-visual,
.algo-visual,
.arch-visual,
.network-visual,
.layer-visual,
.training-flow-visual,
.forward-visual,
.backward-visual {
  max-width: 400px !important;
  margin: 1rem auto !important;
}

.ml-visual svg,
.algo-visual svg,
.arch-visual svg,
.network-visual svg,
.layer-visual svg,
.training-flow-visual svg,
.forward-visual svg,
.backward-visual svg {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Larger diagrams */
.timeline-visual,
.comparison-diagram,
.flow-diagram {
  max-width: 600px !important;
  margin: 1rem auto !important;
}

.timeline-visual svg,
.comparison-diagram svg,
.flow-diagram svg {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* Generic SVG in cards - stronger selector */
.ml-type-card svg,
.ml-type-card .ml-visual svg,
.algorithm-card svg,
.arch-card svg {
  max-width: 360px !important;
  height: auto !important;
  display: block !important;
  margin: 0.5rem auto !important;
}

/* Responsive */
@media (max-width: 768px) {
  .key-insights {
    flex-direction: column;
  }

  .insight-card {
    max-width: none;
    flex: 1 1 100%;
  }

  .ai-types-section,
  .architecture-cards,
  .challenge-cards {
    flex-direction: column;
  }

  .ai-type-card,
  .arch-card,
  .challenge-card,
  .ml-type-card {
    min-width: auto;
    flex: 1 1 100%;
  }

  .command-grid,
  .theories-grid,
  .takeaway-grid,
  .pros-cons-grid,
  .quick-start-grid,
  .problem-grid,
  .solution-grid {
    grid-template-columns: 1fr !important;
  }
}

