/* ==========================================================================
   TABLE OF CONTENTS:
   1. General Elements
   2. Navigation & Layout
   3. Typography
   4. Blockquote & Citations
   5. Publications & Presentations
   6. Education Page
   7. Scrollable Logo Strip
   8. Responsive Adjustments
   9. Utility Classes
   10. Scrollbar Styling
   ========================================================================== */

/* ==========================================================================
   1. General Elements
   ========================================================================== */
.aside {
    overflow-x: hidden;
}

a {
    color: #4d79b2;
    text-decoration: none;
}

.body-link {
    --bs-link-color: red;
}

.text-main {
    color: #4d79b2;
}

.text-align-left {
    text-align: left;
}

/* ==========================================================================
   2. Navigation & Layout
   ========================================================================== */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.alert-info {
    border-left: 4px solid #0dcaf0;
    background-color: #f8f9fa;
}
/* Navigation Bar */
.navbar {
    border-bottom: 1px solid #e7e7e7;
}

.navbar .nav-item .nav-link button {
    color: #777;
    font-family: Arial;
    border: none;
}

.navbar .nav-item .nav-link button:hover {
    color: #333;
}

.navbar-end li button {
    text-align: right;
}

/* Sidebar Navigation */
.sidenav {
    background-color: #f1f1f1;
}

.sidenav div button {
    border: none;
}

.sidenav div button:hover {
    background-color: #d3d1d1;
}

.sidenav .text-pills .nav-item button {
    color: #4d79b2;
    border: none;
    text-align: left;
}

.sidenav .text-pills .nav-item button:hover {
    background-color: #d3d1d1;
}

.sidenav .text-pills .nav-item button:focus {
    color: white;
    background-color: #4d79b2;
}

.sidenav .text-pills .nav-item button.active {
    color: white;
    background-color: #4d79b2;
}

/* Footer */
.footer {
    background-color: #4d4d4d;
    text-decoration: none;
}

.footer a {
    color: white;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
h2 {
    margin-top: 40px;
    color: #333;
    font-weight: 600;
}

.section-divider {
    border-top: 2px solid #4d79b2;
    margin-bottom: 25px;
    width: 100px;
    opacity: 0.8;
}

.section-title {
    color: #4d79b2;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e7e7e7;
    padding-bottom: 8px;
}

.post-date {
    border-bottom: 1px solid rgb(105, 105, 105);
}

/* ==========================================================================
   4. Blockquote & Citations
   ========================================================================== */

/* Blockquote Styling */
.quote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid rgba(77, 121, 178, 0.3);
}

blockquote.text-primary {
    padding: 20px 30px;
    margin: 25px 0;
    font-size: 1.1em;
    line-height: 1.6;
    border-left: 5px solid #4d79b2;
    background-color: rgba(77, 121, 178, 0.08);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-style: italic;
    color: #333;
    position: relative;
}

blockquote.text-primary::before {
    content: "\201C"; /* Opening quotation mark */
    font-size: 4em;
    font-family: Georgia, serif;
    color: rgba(77, 121, 178, 0.2);
    position: absolute;
    left: 10px;
    top: -10px;
}

/* Citation Styling */
p span[id^="MIRD"] {
    display: block;
    margin: 30px 0 15px 0;
    padding: 10px 15px;
    border-top: 1px solid #e7e7e7;
    font-size: 0.9em;
    color: #666;
    background-color: #f9f9f9;
    border-radius: 3px;
}

p span[id^="MIRD"]::before {
    content: "📄 ";
    margin-right: 5px;
}

a[href^="#MIRD"] {
    text-decoration: none;
    padding: 0 3px;
    border-radius: 3px;
    background-color: rgba(77, 121, 178, 0.1);
    transition: background-color 0.2s ease;
}

a[href^="#MIRD"]:hover {
    background-color: rgba(77, 121, 178, 0.2);
}

/* ==========================================================================
   5. Publications & Presentations
   ========================================================================== */

/* Lists */
.publication-list,
.presentation-list {
    list-style-type: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.publication-item,
.presentation-item {
    background-color: #fff;
    border-left: 4px solid #4d79b2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.publication-item:hover,
.presentation-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Headers with year */
.publication-header,
.presentation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.publication-header strong,
.presentation-header strong {
    color: #4d79b2;
    font-size: 1.1em;
}

.publication-year,
.presentation-year {
    background-color: #4d79b2;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: 500;
}

/* Publication Content */
.publication-authors,
.presentation-authors {
    margin-bottom: 6px;
    font-style: italic;
    color: #555;
}

.publication-title,
.presentation-title {
    margin-bottom: 8px;
    font-weight: 500;
}

/* Links */
.publication-link,
.presentation-link {
    display: inline-block;
    color: #4d79b2;
    text-decoration: none;
    padding: 5px 0;
    position: relative;
    overflow: hidden;
    font-size: 0.9em;
}

.publication-link::after,
.presentation-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #4d79b2;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.publication-link:hover::after,
.presentation-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* PDF links */
.pdf-link {
    margin-left: 15px;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    color: #e74c3c;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.pdf-link:hover {
    background-color: #f0f0f0;
    text-decoration: none;
}

/* Additional information */
.presentation-info {
    color: #666;
    margin-bottom: 8px;
    font-size: 0.95em;
}

/* Empty list messages */
.no-items {
    color: #777;
    font-style: italic;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    text-align: center;
}

/* ==========================================================================
   6. Education Page
   ========================================================================== */

.education-intro {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555;
}

.education-section {
    margin-bottom: 40px;
}

/* Lectures styling */
.lecture-item {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lecture-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.lecture-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.lecture-presenter {
    color: #4d79b2;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 15px;
}

.lecture-description {
    line-height: 1.6;
    color: #444;
}

.google-slides-container {
    position: relative;
    padding-bottom: 10px;
    height: auto;
    overflow: hidden;
    border: 1px solid #e7e7e7;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 4px;
}

/* Reading section styling */
.reading-category {
    color: #4d79b2;
    font-weight: 600;
    margin: 25px 0 15px 0;
    padding-bottom: 5px;
    border-bottom: 1px dashed #e0e0e0;
}

.reading-table {
    width: 100%;
    margin-bottom: 20px;
}

.bibtexnumber {
    width: 45px;
    vertical-align: top;
    color: #666;
    font-weight: 500;
}

.bibtexnumber a {
    color: #4d79b2;
    text-decoration: none;
}

.bibtexitem {
    padding: 8px 0;
    line-height: 1.6;
}

.bibtexitem em {
    color: #333;
}

.bibtexitem a {
    color: #4d79b2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bibtexitem a:hover {
    color: #2a5898;
    text-decoration: underline;
}

/* ==========================================================================
   7. Scrollable Logo Strip
   ========================================================================== */
.logo-strip-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.logo-strip {
    display: flex;
    animation: scroll 30s linear infinite;
    width: fit-content; /* This ensures the strip is only as wide as its content */
}

.logo-img {
    height: 64px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 16px;
    flex-shrink: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   8. Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    /* Publications & Presentations */
    .publication-header,
    .presentation-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .publication-year,
    .presentation-year {
        margin-top: 5px;
    }

    .pdf-link {
        margin-left: 0;
        margin-top: 5px;
        display: inline-block;
    }

    /* Education */
    .lecture-item {
        padding: 15px;
    }

    .lecture-title {
        margin-top: 15px;
    }

    .google-slides-container {
        max-width: 100%;
    }

    .google-slides-container iframe {
        max-width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
}

/* ==========================================================================
   9. Utility Classes
   ========================================================================== */
.table-bordered tbody tr.highlight-row-light-blue {
    background-color: rgba(235, 245, 255, 0.5) !important;
}

.table-bordered tbody tr.highlight-row-light-blue:hover {
    background-color: rgba(225, 235, 255, 0.7) !important;
}

/* ==========================================================================
   10. Scrollbar Styling
   ========================================================================== */
/* Firefox */
* {
    scrollbar-width: thin;
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
    width: 10px;
}

*::-webkit-scrollbar-track {
    background: none;
}

*::-webkit-scrollbar-thumb {
    background-color: #9c9c9c;
    border-radius: 10px;
    border: 3px solid #ffffff;
}
