/* Custom Styles for Jan Bischoff Data Science */

/* Profile Photo Styling */
.profile-photo {
    max-width: 250px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    display: block;
}

/* About page: keep profile photo inside its column (no overflow into margin) */
.quarto-layout-panel .quarto-layout-cell:first-child {
    min-width: 0;
    overflow: hidden;
}
.quarto-layout-panel .profile-photo {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Index page: three cards in columns */
.grid.column-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .grid.column-page {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card Styling for Grid Layouts */
.card {
    padding: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
}

/* Button Styling */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #1150A2;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0d3d7a;
}

/* Accordion/Callout tweaks for Research page */
.callout-note.callout-style-default {
    border-left-color: #2c3e50;
}

.callout-header {
    background-color: #f8f9fa;
}

/* Footer – main background */
.footer,
.nav-footer {
    background-color: #1150A2 !important;
    color: #fff;
    font-weight: bold;
}
.footer a,
.nav-footer a {
    color: rgba(255, 255, 255, 0.9) !important;
}
.footer a:hover,
.nav-footer a:hover {
    color: #fff !important;
}

/* Main content – same width and alignment on all pages (DE + EN).
   Use one grid for #quarto-content so index, about, students, pupils, research all align. */
#quarto-content.quarto-container.page-columns {
    display: grid !important;
    grid-template-columns: minmax(1.5rem, 1fr) minmax(0, 1140px) minmax(1.5rem, 1fr) !important;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
#quarto-content.quarto-container.page-columns > main.content {
    grid-column: 2 !important;
    min-width: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

/* Index: keep hero and all content on same left edge (no full-bleed) */
#quarto-document-content .hero {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    box-sizing: border-box;
}

/* About: keep picture and text aligned with header – disable section grid that shifts image left */
#quarto-document-content section.page-columns.page-full {
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100%;
}
#quarto-document-content section.page-columns.page-full .quarto-layout-panel {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* About page: align title with studenten/schueler pages – remove extra left inset from column-body */
main.content.column-body #title-block-header,
main.content.column-body .quarto-title-block {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Navigation tweaks – logo only in navbar (hide site title text) */
.navbar-title {
    display: none !important;
}
.navbar-brand img {
    max-height: 44px;
    height: 44px;
    width: auto;
}