/* ============================================
   Modern single-page design overrides
   ============================================ */

/* Reset jemdoc defaults */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: white;
    color: #444;
    line-height: 1.6;
}

#layout-content {
    padding: 0 !important;
    margin: 0;
    max-width: 100%;
    border: none;
    overflow: visible !important;
}

/* Override jemdoc heading defaults */
h1, h2, h3 {
    border-bottom: none;
    color: #333;
    padding: 0;
    margin: 0;
    line-height: 1.3;
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    border-bottom: none;
}

img {
    border: none;
}

/* ============================================
   Top Navigation
   ============================================ */
.top-nav {
    background: #4A287E;
    padding: 14px 40px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-link {
    color: white !important;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: white !important;
    border-bottom: none !important;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: white;
    padding: 20px 0 60px;
    scroll-margin-top: 50px;
}

.section-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 2.2em;
    color: #333;
    margin-top: 0 !important;
    margin-bottom: 20px;
    padding: 0;
    line-height: 1.2;
    border-bottom: none !important;
    font-weight: 700;
}

.hero-text p {
    color: #555;
    line-height: 1.75;
    margin-bottom: 16px;
    font-size: 0.93em;
}

.text-link {
    color: #555 !important;
    text-decoration: underline;
}

.text-link:hover {
    border-bottom: none !important;
    opacity: 0.7;
}

.hero-image {
    flex: 0 0 240px;
    padding-top: 10px;
}

.profile-img {
    width: 240px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.resume-btn {
    display: inline-block;
    background: #e8756d;
    color: white !important;
    padding: 13px 28px;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 0.95em;
    font-weight: 600;
    margin-top: 12px;
    transition: background 0.3s;
    border: none;
}

.resume-btn:hover {
    background: #d4645c;
    border-bottom: none !important;
}

/* ============================================
   Publications Section
   ============================================ */
.publications-section {
    background: #dff0ea;
    padding: 30px 0 20px;
    scroll-margin-top: 50px;
}

.section-title {
    font-size: 1.35em;
    color: #333;
    margin-bottom: 15px !important;
    padding-bottom: 0;
    border-bottom: none !important;
    font-weight: 600;
}

.pub-subtitle {
    font-size: 1.1em;
    color: #555;
    font-weight: 600;
    margin-top: 10px !important;
    margin-bottom: 8px !important;
    border-bottom: none !important;
}

.pub-list {
    list-style-type: disc !important;
    list-style-position: outside;
    padding-left: 25px;
    margin-top: 5px;
    margin-bottom: 0;
}

.pub-list li {
    margin-bottom: 12px;
    color: #444;
    line-height: 1.6;
    font-size: 0.93em;
}

.pub-authors {
    color: #777;
    font-style: italic;
}

.abstract-toggle {
    margin-top: 8px;
}

.abstract-btn {
    display: inline-block;
    background: #4A287E;
    color: white !important;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.abstract-btn::-webkit-details-marker {
    display: none;
}

.abstract-btn:hover {
    background: #3d2069;
    border-bottom: none !important;
}

.abstract-box {
    margin-top: 10px;
    padding: 15px 18px;
    background: #f9f9f9;
    border-left: 3px solid #4A287E;
    border-radius: 0 4px 4px 0;
    color: #444;
    font-size: 0.88em;
    line-height: 1.7;
}

/* ============================================
   Teachings Section
   ============================================ */
.teachings-section {
    background: white;
    scroll-margin-top: 50px;
    padding: 40px 0 10px;
}

.teachings-section p {
    color: #555;
    line-height: 1.6;
    font-size: 0.93em;
    margin-bottom: 10px;
}

.course-heading {
    margin-bottom: 5px !important;
    margin-top: 18px !important;
}

.course-list {
    list-style-type: disc !important;
    list-style-position: outside;
    padding-left: 25px;
    margin-bottom: 10px;
    margin-top: 5px;
}

.course-list li {
    margin-bottom: 6px;
    color: #555;
    line-height: 1.6;
    font-size: 0.93em;
}

.course-list ul {
    list-style-type: disc !important;
    list-style-position: outside;
    padding-left: 25px;
    margin-top: 3px;
    margin-bottom: 3px;
}

.course-list ul li {
    font-weight: normal;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    padding: 10px 40px 30px;
    scroll-margin-top: 50px;
}

.footer-line {
    border: none;
    border-top: 1px solid #ddd;
    margin-bottom: 20px;
}

.footer-content {
    text-align: center;
}

.footer-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.footer-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-bottom: none !important;
}

.footer-icon-link:hover {
    border-bottom: none !important;
    opacity: 0.7;
}

.copyright {
    color: #888;
    font-size: 0.85em;
    margin: 0;
}

.footer-text-link {
    color: #888 !important;
    text-decoration: underline;
}

.footer-text-link:hover {
    color: #555 !important;
    border-bottom: none !important;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        align-items: center;
    }

    .hero-image {
        flex: none;
    }

    .profile-img {
        width: 180px;
    }

    .hero-title {
        font-size: 1.6em;
        text-align: center;
    }

    .hero-text p {
        text-align: center;
    }

    .section-inner {
        padding: 0 20px;
    }

    .top-nav {
        padding: 12px 15px;
    }

    .nav-links {
        gap: 0;
        flex-wrap: nowrap;
        justify-content: space-evenly;
        width: 100%;
    }

    .nav-link {
        font-size: 0.78em;
        white-space: nowrap;
    }

    .section-title {
        font-size: 1.2em;
    }

    .abstract-box {
        font-size: 0.84em;
    }
}
