/* --- Import Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

/* --- General Body & Typography --- */
body {
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Headings --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Inter", sans-serif;
    font-weight: 600;

}

h1.title,
p.subtitle {
    text-align: center !important;
    color: white;
}

/* Title banner background */
.quarto-title-block {
    background-color: #1a2b57;
    /* navy */
    color: white;
    /* white text */
    text-align: center;
    padding: 40px 20px;
    /* space around text */
    border-radius: 0 0 20px 20px;
    /* optional rounded bottom */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* subtle shadow */
}

/* Make sure title/subtitle text inherit white color */
.quarto-title-block h1.title,
.quarto-title-block p.subtitle {
    color: white !important;
    margin: 0;
}

h2 {
    /* Use Bootstrap CSS variables for colors to respect light/dark mode */
    border-bottom: 1px solid var(--bs-border-color);
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
}

h3 {
    font-weight: 600;
    margin-top: 2rem;
}

/* --- Links --- */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Card Layout for Applications --- */
.card-container {
    display: grid;
    /* A single column layout for the new list-style cards */
    grid-template-columns: 1fr;
    gap: 1.25rem;
    /* Space between cards */
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    /* Constrain width for better readability in this layout */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    /* Allows card to fill the link area */
    height: 100%;
}

.card {
    /* Use CSS variables for theme-aware colors */
    border: 1px solid var(--bs-border-color-translucent);
    background-color: var(--bs-body-bg);
    border-radius: 10px;
    /* Softer, modern corners */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    overflow: hidden;
    /* Keeps image corners rounded */
    display: flex;
    flex-direction: row;
    /* Image on left, text on right */
    align-items: stretch;
    /* Make card children fill height */
    /* height: 100%; */
    /* Let content define height */
}

.card:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    /* More prominent shadow on hover */
    transform: translateY(-5px);
    /* "Lifts" the card */
    border-color: var(--bs-border-color);
}

.card-image-wrapper {
    width: 220px;
    /* Fixed width for the image area */
    flex-shrink: 0;
    /* Prevent image from shrinking */
}

.card-image {
    width: 100%;
    height: 100%;
    /* Image fills the wrapper's height */
    object-fit: cover;
    /* Ensures image covers the area without distortion */
    border-right: 1px solid var(--bs-border-color-translucent);
    /* Separator line */
    /* border-bottom: 0; */
    /* No longer needed */
}

.card-caption {
    padding: 1.25rem 1.5rem;
    /* Added more padding for this layout */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center text vertically */
    flex-grow: 1;
    /* Caption takes remaining space */
}

.card-title {
    font-size: 1.25rem;
    /* Slightly larger title */
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--bs-primary);
    /* Uses the theme's primary color (blue in Yeti) */
}

.card-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    /* flex-grow: 1; */
    /* Removed */
    color: var(--bs-body-color);
}

/* --- Dark Mode Specific Overrides --- */
[data-bs-theme="dark"] .card {
    box-shadow: none;
    /* Shadows look odd in dark mode */
}

[data-bs-theme="dark"] .card:hover {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
    /* Subtle glow on hover */
    border-color: var(--bs-gray-600);
}

[data-bs-theme="dark"] .card-desc {
    color: var(--bs-gray-400);
    /* Lighter text for dark bg */
}


/* --- Callouts --- */
.callout {
    border-radius: 6px;
    border-left-width: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.callout .callout-title {
    font-weight: 600;
}

.callout-note h3,
.callout-tip h3,
.callout-warning h3,
.callout-important h3 {
    text-align: center;
}

/* --- Footer --- */
.footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bs-border-color-translucent);
    font-size: 0.9rem;
    color: var(--bs-secondary-color);
    /* Muted text color */
}

.img-center {
    text-align: center;
    margin: 30px auto;
}

.img-center img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sidebar-card-grid {
  display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
grid-template-rows: repeat(2, auto);
  gap: 20px;
  margin: 30px auto;
  max-width: 1000px;
  padding: 0 10px;
}

.sidebar-card {
  background: #ffffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}

.sidebar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.sidebar-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;       /* ensures the whole image is visible */
  background-color: #ffffffff; /* fills empty space around smaller images */
  padding: 10px;
  display: block;
}

.sidebar-caption {
  background: #f5f5f5;
  padding: 12px 14px;
  color: #333;
  border-top: 1px solid #e0e0e0;
}

.sidebar-caption h4 {
  margin: 6px 0 4px;
  font-size: 1em;
  font-weight: 600;
}

.sidebar-caption p {
  font-size: 0.85em;
  margin: 0;
  color: #555;
}

.panel-tabset .nav-pills {
  font-size: 0.85rem; /* smaller text */
  padding: 2px 6px;   /* less padding around pills */
}

.panel-tabset .nav-pills .nav-link {
  font-size: 0.85rem; /* smaller pill text */
  padding: 4px 8px;   /* shrink pill size */
  border-radius: 0.5rem; /* optional: smaller curve */
}