/* Publications Page - Specific Styling */

/* Mobile background for publications page - Library Image Background */
body.publications-page {
    background: #f5f5f5;
    color: #333;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Ensure container overlay works properly */
.publications-page .container {
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%), 
                url('publication_background.jpeg') no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
    position: relative;
    z-index: 1;
}

/* Publications Main Section - Different background color */
.publications-page .publications-main-section {
    background: #f5f5f5;
    color: #333;
    padding: 40px 20px 0;
    min-height: auto;
    background-attachment: scroll;
}

/* Center the PUBLICATIONS heading in hero section */
.publications-page .name-section {
    text-align: center;
}

/* Section Title - White and visible */
.publications-page .section-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-align: center;
}

.publications-page .animated-section-title {
    color: white;
}

.publications-page .animated-section-title::after {
    background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.7));
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

/* Desktop background for publications page */
@media (min-width: 1200px) {
    html,
    body.publications-page {
        background: #dde8ff;
    }

    body.publications-page {
        background: #dde8ff;
    }

    .publications-page .name-section {
        text-align: center;
    }

    .publications-page .container {
        background: linear-gradient(135deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.45) 100%), 
                    url('publication_background.jpeg') no-repeat center top;
        background-size: cover;
        background-attachment: scroll;
    }

    .publications-page .publications-main-section {
        background: #dde8ff;
        padding: 60px 50px 0;
        background-attachment: scroll;
    }

    .publications-page .section-title {
        color: white;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
        font-size: 3.5rem;
        text-align: center;
    }

    .publications-page .section-title.animate-in .animated-section-title::after {
        background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
        box-shadow: 0 2px 20px rgba(255, 255, 255, 0.4);
    }

    /* Publication items with transparency */
    .publications-page .publication-item {
        background: rgba(255, 255, 255, 0.93);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    .publications-page .publication-item:hover {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    }
}

/* Large Desktop background optimization */
@media (min-width: 1440px) {
    .publications-page .publications-main-section {
        background: #dde8ff;
    }
}

/* Ultra-wide Desktop background optimization */
@media (min-width: 1920px) {
    .publications-page .publications-main-section {
        background: #dde8ff;
    }
}

/* Publications Sections Container */
.publications-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Individual Section Wrapper */
.publications-section-wrapper {
    animation: fadeInSection 0.6s ease forwards;
    opacity: 0;
}

.publications-section-wrapper.full-frame-wrapper {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.publications-section-wrapper.full-frame-wrapper .book-chapters-section,
.publications-section-wrapper.full-frame-wrapper .nonfiction-prose-section,
.publications-section-wrapper.full-frame-wrapper .poetry-anthology-section,
.publications-section-wrapper.full-frame-wrapper .forthcoming-section {
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.publications-section-wrapper.full-frame-wrapper .book-chapters-title,
.publications-section-wrapper.full-frame-wrapper .book-chapters-container,
.publications-section-wrapper.full-frame-wrapper .nonfiction-prose-title,
.publications-section-wrapper.full-frame-wrapper .nonfiction-prose-container,
.publications-section-wrapper.full-frame-wrapper .poetry-anthology-title,
.publications-section-wrapper.full-frame-wrapper .poetry-anthology-container,
.publications-section-wrapper.full-frame-wrapper .forthcoming-title,
.publications-section-wrapper.full-frame-wrapper .forthcoming-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.publications-section-wrapper.full-frame-wrapper.nonfiction-prose-wrapper {
    margin-top: -4rem;
}

@media (max-width: 768px) {
    .publications-section-wrapper.full-frame-wrapper.nonfiction-prose-wrapper {
        margin-top: -2rem;
    }
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.publications-section-wrapper:nth-child(1) {
    animation-delay: 0.1s;
}

.publications-section-wrapper:nth-child(2) {
    animation-delay: 0.3s;
}

.publications-section-wrapper:nth-child(3) {
    animation-delay: 0.5s;
}

.publications-section-wrapper:nth-child(n+4) {
    animation-delay: 0.7s;
}

/* Published Articles Section - White Background */
.published-articles-section {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.published-articles-section .section-title {
    color: #1a1a1a;
    text-shadow: none;
    border-bottom: 3px solid #1a1a1a;
    margin: 0;
    padding: 2rem 2rem 1.5rem 2rem;
}

.published-articles-section .animated-section-title {
    color: #1a1a1a;
}

.published-articles-section .animated-section-title::after {
    background: linear-gradient(90deg, #1a1a1a, rgba(26, 26, 26, 0.7));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.published-articles-container {
    background: #fafafa;
    padding: 2rem;
}

/* Book Chapters and Reviews Section - Distinct background color */
.book-chapters-section {
    background: linear-gradient(135deg, #fff4dd 0%, #ffe8c2 100%);
    border: 1px solid rgba(185, 120, 35, 0.2);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(120, 82, 24, 0.16);
    overflow: hidden;
}

.book-chapters-title {
    margin: 0;
    padding: 2rem 2rem 1.5rem 2rem;
    border-bottom: 2px solid rgba(120, 82, 24, 0.3);
    color: #6f4712;
    text-shadow: none;
    text-align: left;
}

.book-chapters-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.book-chapters-section .research-article-item {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(120, 82, 24, 0.14);
    box-shadow: 0 4px 16px rgba(120, 82, 24, 0.14);
}

.book-chapters-section .research-article-item:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 28px rgba(120, 82, 24, 0.22);
}

.book-chapters-section .research-article-title {
    color: #5b3a0f;
}

.book-chapters-section .research-article-year {
    background: #f4dfb8;
    color: #5b3a0f;
}

/* Nonfiction Prose Section - Distinct background color */
.nonfiction-prose-section {
    background: linear-gradient(135deg, #e9f9f3 0%, #d8f1e8 100%);
    border: 1px solid rgba(30, 120, 90, 0.22);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(24, 98, 74, 0.16);
    overflow: hidden;
}

.nonfiction-prose-title {
    margin: 0;
    padding: 2rem 2rem 1.5rem 2rem;
    border-bottom: 2px solid rgba(24, 98, 74, 0.28);
    color: #0f5a43;
    text-shadow: none;
    text-align: left;
}

.nonfiction-prose-container {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.nonfiction-card {
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(24, 98, 74, 0.14);
    box-shadow: 0 10px 24px rgba(24, 98, 74, 0.14);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nonfiction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(24, 98, 74, 0.2);
}

.nonfiction-card-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #e4f2ed;
    overflow: hidden;
}

.nonfiction-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nonfiction-card-body {
    padding: 1.25rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.nonfiction-card-title {
    margin: 0;
    color: #153c2f;
    font-size: 1.8rem;
    line-height: 1.25;
    font-weight: 700;
}

.nonfiction-card-date {
    margin: 0;
    color: #58756a;
    font-size: 0.85rem;
    line-height: 1.45;
}

.nonfiction-card-button {
    margin-top: auto;
    width: 100%;
    text-align: center;
    text-decoration: none;
    border: 1px solid #c7d8d2;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #1a2f27;
    font-size: 1.05rem;
    font-weight: 500;
    background: #ffffff;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nonfiction-card-button:hover {
    background: #f2faf7;
    border-color: #95bfb0;
    color: #0e4b37;
}

.nonfiction-card-button.disabled {
    pointer-events: none;
    opacity: 0.55;
}

@media (min-width: 768px) {
    .nonfiction-prose-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .poetry-anthology-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .nonfiction-prose-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nonfiction-card-title {
        font-size: 2.35rem;
    }

    .poetry-anthology-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.nonfiction-prose-section .research-article-item {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(24, 98, 74, 0.14);
    box-shadow: 0 4px 16px rgba(24, 98, 74, 0.14);
}

.nonfiction-prose-section .research-article-item:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 28px rgba(24, 98, 74, 0.22);
}

.nonfiction-prose-section .research-article-title {
    color: #0d4d3a;
}

.nonfiction-prose-section .research-article-year {
    background: #cdeee1;
    color: #0d4d3a;
}

/* Nonfiction Prose section-level reveal animation */
.nonfiction-prose-section .np-reveal-target,
.nonfiction-prose-section .np-reveal-child {
    opacity: 0;
    transform: translateY(28px);
}

.nonfiction-prose-section.np-section-visible .np-reveal-target {
    animation: nonfictionRevealUp 0.68s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
    animation-delay: var(--np-delay, 0s);
}

.nonfiction-prose-section.np-section-visible .np-reveal-child {
    animation: nonfictionInnerRevealUp 0.56s ease forwards;
    animation-delay: calc(var(--np-delay, 0s) + var(--np-child-delay, 0s));
}

@keyframes nonfictionRevealUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nonfictionInnerRevealUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nonfiction-prose-section .np-reveal-target,
    .nonfiction-prose-section .np-reveal-child {
        opacity: 1;
        transform: none;
        animation: none !important;
    }
}

/* Poetry Anthology Section - Distinct background color */
.poetry-anthology-section {
    background: linear-gradient(135deg, #fff1e8 0%, #ffe4d2 100%);
    border: 1px solid rgba(150, 78, 24, 0.22);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(122, 63, 20, 0.16);
    overflow: hidden;
}

.poetry-anthology-title {
    margin: 0;
    padding: 2rem 2rem 1.5rem 2rem;
    border-bottom: 2px solid rgba(122, 63, 20, 0.28);
    color: #7a3f14;
    text-shadow: none;
    text-align: left;
}

.poetry-anthology-container {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.poetry-anthology-section .nonfiction-card {
    border: 1px solid rgba(122, 63, 20, 0.16);
    box-shadow: 0 10px 24px rgba(122, 63, 20, 0.14);
}

.poetry-anthology-section .nonfiction-card:hover {
    box-shadow: 0 16px 30px rgba(122, 63, 20, 0.22);
}

.poetry-anthology-section .nonfiction-card-image-wrapper {
    background: #f7dfd0;
}

.poetry-anthology-section .nonfiction-card-title {
    color: #5f2f0f;
}

.poetry-anthology-section .nonfiction-card-date {
    color: #8c593a;
}

.poetry-anthology-section .nonfiction-card-button {
    border-color: #d8baa6;
    color: #4a2408;
}

.poetry-anthology-section .nonfiction-card-button:hover {
    background: #fff5ef;
    border-color: #c89471;
    color: #6d340f;
}

/* Poetry Anthology section-level reveal animation */
.poetry-anthology-section .pa-reveal-target,
.poetry-anthology-section .pa-reveal-child {
    opacity: 0;
    transform: translateY(28px);
}

.poetry-anthology-section.pa-section-visible .pa-reveal-target {
    animation: poetryRevealUp 0.68s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
    animation-delay: var(--pa-delay, 0s);
}

.poetry-anthology-section.pa-section-visible .pa-reveal-child {
    animation: poetryInnerRevealUp 0.56s ease forwards;
    animation-delay: calc(var(--pa-delay, 0s) + var(--pa-child-delay, 0s));
}

@keyframes poetryRevealUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes poetryInnerRevealUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .poetry-anthology-section .pa-reveal-target,
    .poetry-anthology-section .pa-reveal-child {
        opacity: 1;
        transform: none;
        animation: none !important;
    }
}

/* Forthcoming Section - Distinct background color */
.forthcoming-section {
    background: linear-gradient(135deg, #eef3ff 0%, #dde8ff 100%);
    border: 1px solid rgba(55, 83, 160, 0.2);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(45, 74, 145, 0.15);
    overflow: hidden;
}

.forthcoming-title {
    margin: 0;
    padding: 2rem 2rem 1.5rem 2rem;
    border-bottom: 2px solid rgba(45, 74, 145, 0.3);
    color: #29428a;
    text-shadow: none;
    text-align: left;
}

.forthcoming-container {
    padding: 2rem 2rem 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.forthcoming-section .nonfiction-card {
    border: 1px solid rgba(45, 74, 145, 0.16);
    box-shadow: 0 10px 24px rgba(45, 74, 145, 0.13);
}

.forthcoming-section .nonfiction-card:hover {
    box-shadow: 0 16px 30px rgba(45, 74, 145, 0.2);
}

.forthcoming-section .nonfiction-card-image-wrapper {
    background: #dce8ff;
}

.forthcoming-section .nonfiction-card-title {
    color: #1f3573;
}

.forthcoming-section .nonfiction-card-button {
    border-color: #bbcaef;
    color: #1c2e62;
}

.forthcoming-section .nonfiction-card-button:hover {
    background: #f2f6ff;
    border-color: #92a8e3;
    color: #243b7d;
}

/* Forthcoming section-level reveal animation */
.forthcoming-section .fa-reveal-target,
.forthcoming-section .fa-reveal-child {
    opacity: 0;
    transform: translateY(28px);
}

.forthcoming-section.fa-section-visible .fa-reveal-target {
    animation: forthcomingRevealUp 0.68s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
    animation-delay: var(--fa-delay, 0s);
}

.forthcoming-section.fa-section-visible .fa-reveal-child {
    animation: forthcomingInnerRevealUp 0.56s ease forwards;
    animation-delay: calc(var(--fa-delay, 0s) + var(--fa-child-delay, 0s));
}

@keyframes forthcomingRevealUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes forthcomingInnerRevealUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .forthcoming-section .fa-reveal-target,
    .forthcoming-section .fa-reveal-child {
        opacity: 1;
        transform: none;
        animation: none !important;
    }
}

.poetry-card-meta {
    margin: 0;
    color: #8c593a;
    font-size: 0.85rem;
    line-height: 1.45;
}

.poetry-card-description {
    margin: 0;
    color: #5b3925;
    font-size: 0.92rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Poetry Anthology always stays at two columns on tablet and desktop */
.poetry-anthology-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .poetry-anthology-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .forthcoming-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .publications-page .publications-main-section {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .publications-page .forthcoming-wrapper {
        margin-bottom: 0;
    }

    .publications-page .get-in-touch-section {
        margin-top: 0;
        padding-top: 0;
    }
}

@media (min-width: 1200px) {
    .poetry-anthology-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .forthcoming-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Section Header */
.section-header {
    margin-bottom: 2.5rem;
    position: relative;
    text-align: center;
}

/* Section Name Label - Mobile First */
.section-name-label {
    display: inline-block;
    color: #DA70D6;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Tablet: Section Name Label */
@media (min-width: 769px) and (max-width: 1199px) {
    .section-name-label {
        font-size: 3rem;
    }
}

/* Desktop: Section Name Label */
@media (min-width: 1200px) {
    .section-name-label {
        font-size: 3.5rem;
    }
}

/* Section Title Styling */
.publications-section-wrapper .section-title {
    margin-bottom: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    text-shadow: none;
    border-bottom: 3px solid rgba(0, 0, 0, 0.15);
    padding-bottom: 1rem;
    text-align: center;
}

.publications-section-wrapper .animated-section-title {
    color: #1a1a1a;
}

.publications-section-wrapper .animated-section-title::after {
    background: linear-gradient(90deg, #1a1a1a, rgba(26, 26, 26, 0.7));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Publications List Styling */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0;
}

.publication-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.publication-item:hover {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.publication-content {
    color: #333;
}

.publication-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.publication-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #666;
}

.publication-authors {
    font-style: italic;
}

.publication-year {
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.publication-description {
    color: #444;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.publication-journal,
.publication-volume,
.publication-pages {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.publication-journal strong,
.publication-volume strong,
.publication-pages strong {
    color: #333;
}

.publication-link {
    display: inline-block;
    margin-top: 1rem;
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.publication-link:hover {
    background: #f0f0f0;
    color: #0052a3;
}

.no-publications,
.error {
    text-align: center;
    color: #666;
    padding: 2rem;
    font-size: 1.1rem;
}

.error {
    color: #d32f2f;
}

/* Tablet Publications Styling */
@media (min-width: 769px) and (max-width: 1199px) {
    .publications-page .publications-main-section {
        padding: 50px 35px 0;
    }

    .publications-page .name-section {
        text-align: center;
    }

    .publications-page .section-title {
        font-size: 2.8rem;
        text-align: center;
    }

    /* Tablet: Research Articles Section */
    .research-articles-section .section-title {
        font-size: 2.2rem;
        margin-bottom: 1.8rem;
        padding-bottom: 1.2rem;
    }

    .research-article-item {
        padding: 1.3rem;
    }

    .research-article-image-wrapper {
        height: 140px;
        margin: -1.3rem -1.3rem 1rem -1.3rem;
    }

    .research-article-title {
        font-size: 1.1rem;
        margin-bottom: 0.7rem;
    }

    .research-article-item.animate-in .research-article-title {
        animation: titleSlideIn 0.6s ease forwards;
        opacity: 0;
    }

    .research-article-authors {
        font-size: 0.9rem;
    }

    .research-article-description {
        font-size: 0.92rem;
    }

    .research-article-meta {
        font-size: 0.85rem;
    }

    .research-articles-container {
        gap: 1.8rem;
    }

    /* Tablet: Published Articles Section */
    .published-articles-section {
        padding: 0;
    }

    .published-articles-section .section-title {
        font-size: 2.2rem;
        margin: 0;
        padding: 2.5rem 2.5rem 1.8rem 2.5rem;
        border-bottom: 3px solid #1a1a1a;
    }

    .published-articles-container {
        padding: 2.5rem;
    }

    .book-chapters-title {
        font-size: 2.2rem;
        padding: 2.2rem 2.2rem 1.6rem 2.2rem;
    }

    .book-chapters-container {
        padding: 2.2rem;
    }

    .nonfiction-prose-title {
        font-size: 2.2rem;
        padding: 2.2rem 2.2rem 1.6rem 2.2rem;
    }

    .nonfiction-prose-container {
        padding: 2.2rem;
    }
}

/* Mobile Publications Styling */
/* Small Mobile (320px-360px) */
@media (max-width: 360px) {
    .research-articles-section .section-title {
        font-size: 0.95rem;
        margin-bottom: 0.7rem;
        padding-bottom: 0.5rem;
    }

    .research-article-item {
        padding: 0.6rem;
    }

    .research-article-image-wrapper {
        height: 80px;
        margin: -0.6rem -0.6rem 0.8rem -0.6rem;
    }

    .research-article-title {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }

    .research-article-item.animate-in .research-article-title {
        animation: titleSlideIn 0.6s ease forwards;
        opacity: 0;
    }

    .research-article-authors {
        font-size: 0.65rem;
    }

    .research-article-description {
        font-size: 0.68rem;
        line-height: 1.4;
    }

    .research-articles-container {
        gap: 0.8rem;
    }

    /* Small Mobile: Published Articles Section */
    .published-articles-section {
        padding: 0;
        border-radius: 8px;
    }

    .published-articles-section .section-title {
        font-size: 1rem;
        margin: 0;
        padding: 1.2rem 1.2rem 0.8rem 1.2rem;
        border-bottom: 2px solid #1a1a1a;
    }

    .published-articles-container {
        background: #fafafa;
        padding: 1.2rem;
    }

    .book-chapters-section {
        border-radius: 8px;
    }

    .book-chapters-title {
        font-size: 1rem;
        padding: 1.2rem 1.2rem 0.8rem 1.2rem;
    }

    .book-chapters-container {
        padding: 1.1rem;
        gap: 0.9rem;
    }

    .nonfiction-prose-section {
        border-radius: 8px;
    }

    .nonfiction-prose-title {
        font-size: 1rem;
        padding: 1.2rem 1.2rem 0.8rem 1.2rem;
    }

    .nonfiction-prose-container {
        padding: 1.1rem;
        gap: 0.9rem;
    }
}

/* Medium Mobile (360px-480px) */
@media (min-width: 361px) and (max-width: 480px) {
    .research-articles-section .section-title {
        font-size: 1.05rem;
        margin-bottom: 0.8rem;
        padding-bottom: 0.55rem;
    }

    .research-article-item {
        padding: 0.65rem;
    }

    .research-article-image-wrapper {
        height: 100px;
        margin: -0.65rem -0.65rem 0.8rem -0.65rem;
    }

    .research-article-title {
        font-size: 0.78rem;
        margin-bottom: 0.35rem;
    }

    .research-article-item.animate-in .research-article-title {
        animation: titleSlideIn 0.6s ease forwards;
        opacity: 0;
    }

    .research-article-authors {
        font-size: 0.68rem;
    }

    .research-article-description {
        font-size: 0.7rem;
        line-height: 1.4;
    }

    .research-articles-container {
        gap: 0.9rem;
    }

    /* Medium Mobile: Published Articles Section */
    .published-articles-section {
        padding: 0;
        border-radius: 8px;
    }

    .published-articles-section .section-title {
        font-size: 1.1rem;
        margin: 0;
        padding: 1.3rem 1.3rem 0.9rem 1.3rem;
        border-bottom: 2px solid #1a1a1a;
    }

    .published-articles-container {
        background: #fafafa;
        padding: 1.3rem;
    }

    .book-chapters-section {
        border-radius: 8px;
    }

    .book-chapters-title {
        font-size: 1.1rem;
        padding: 1.3rem 1.3rem 0.9rem 1.3rem;
    }

    .book-chapters-container {
        padding: 1.2rem;
        gap: 1rem;
    }

    .nonfiction-prose-section {
        border-radius: 8px;
    }

    .nonfiction-prose-title {
        font-size: 1.1rem;
        padding: 1.3rem 1.3rem 0.9rem 1.3rem;
    }

    .nonfiction-prose-container {
        padding: 1.2rem;
        gap: 1rem;
    }
}

/* Large Mobile (480px-600px) */
@media (min-width: 481px) and (max-width: 600px) {
    .research-articles-section .section-title {
        font-size: 1.15rem;
        margin-bottom: 0.9rem;
        padding-bottom: 0.6rem;
    }

    .research-article-item {
        padding: 0.7rem;
    }

    .research-article-image-wrapper {
        height: 120px;
        margin: -0.7rem -0.7rem 0.8rem -0.7rem;
    }

    .research-article-title {
        font-size: 0.82rem;
        margin-bottom: 0.4rem;
    }

    .research-article-item.animate-in .research-article-title {
        animation: titleSlideIn 0.6s ease forwards;
        opacity: 0;
    }

    .research-article-authors {
        font-size: 0.7rem;
    }

    .research-article-description {
        font-size: 0.73rem;
        line-height: 1.4;
    }

    .research-articles-container {
        gap: 1rem;
    }

    /* Large Mobile: Published Articles Section */
    .published-articles-section {
        padding: 0;
        border-radius: 10px;
    }

    .published-articles-section .section-title {
        font-size: 1.2rem;
        margin: 0;
        padding: 1.5rem 1.5rem 1rem 1.5rem;
        border-bottom: 2px solid #1a1a1a;
    }

    .published-articles-container {
        background: #fafafa;
        padding: 1.5rem;
    }

    .book-chapters-section {
        border-radius: 10px;
    }

    .book-chapters-title {
        font-size: 1.2rem;
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }

    .book-chapters-container {
        padding: 1.4rem;
        gap: 1.1rem;
    }

    .nonfiction-prose-section {
        border-radius: 10px;
    }

    .nonfiction-prose-title {
        font-size: 1.2rem;
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }

    .nonfiction-prose-container {
        padding: 1.4rem;
        gap: 1.1rem;
    }
}

/* Extra Large Mobile (600px-768px) */
@media (min-width: 601px) and (max-width: 768px) {
    .research-articles-section .section-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        padding-bottom: 0.7rem;
    }

    .research-article-item {
        padding: 0.8rem;
    }

    .research-article-image-wrapper {
        height: 130px;
        margin: -0.8rem -0.8rem 0.8rem -0.8rem;
    }

    .research-article-title {
        font-size: 0.88rem;
        margin-bottom: 0.5rem;
    }

    .research-article-item.animate-in .research-article-title {
        animation: titleSlideIn 0.6s ease forwards;
        opacity: 0;
    }

    .research-article-authors {
        font-size: 0.75rem;
    }

    .research-article-description {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .research-articles-container {
        gap: 1.1rem;
    }

    /* Extra Large Mobile: Published Articles Section */
    .published-articles-section {
        padding: 0;
        border-radius: 10px;
    }

    .published-articles-section .section-title {
        font-size: 1.3rem;
        margin: 0;
        padding: 1.8rem 1.8rem 1.1rem 1.8rem;
        border-bottom: 3px solid #1a1a1a;
    }

    .published-articles-container {
        background: #fafafa;
        padding: 1.8rem;
    }

    .book-chapters-section {
        border-radius: 10px;
    }

    .book-chapters-title {
        font-size: 1.3rem;
        padding: 1.8rem 1.8rem 1.1rem 1.8rem;
    }

    .book-chapters-container {
        padding: 1.6rem;
        gap: 1.2rem;
    }

    .nonfiction-prose-section {
        border-radius: 10px;
    }

    .nonfiction-prose-title {
        font-size: 1.3rem;
        padding: 1.8rem 1.8rem 1.1rem 1.8rem;
    }

    .nonfiction-prose-container {
        padding: 1.6rem;
        gap: 1.2rem;
    }
}

/* Base Mobile (default for all ≤768px) */
@media (max-width: 768px) {
    .publications-page .publications-main-section {
        padding: 30px 15px 0;
    }

    .publications-content {
        gap: 2rem;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .publications-section-wrapper .section-title {
        font-size: 1.3rem;
        padding-bottom: 0.75rem;
        margin-bottom: 1.5rem;
    }

    /* Mobile: Increase publications page section title size */
    .publications-page .name-section {
        text-align: center;
    }

    .publications-page .section-title {
        font-size: 3rem;
        margin-top: -1rem;
        text-align: center;
    }

    .publication-item {
        padding: 1rem;
    }

    .publication-title {
        font-size: 1.1rem;
    }

    .publication-meta {
        gap: 0.5rem;
        flex-direction: column;
    }

    .publication-year {
        display: inline-block;
    }

    .publications-list {
        gap: 1.5rem;
    }

    .research-articles-section .section-title {
        font-size: 1.15rem;
        margin-bottom: 0.9rem;
        padding-bottom: 0.6rem;
    }

    .research-article-item {
        padding: 0.7rem;
        margin-bottom: 0.15rem;
    }

    .research-article-title {
        font-size: 0.82rem;
        margin-bottom: 0.4rem;
        font-weight: 600;
        animation: titleSlideIn 0.6s ease forwards;
        opacity: 0;
    }

    .research-article-authors {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }

    .research-article-meta {
        gap: 0.25rem;
        flex-direction: column;
        font-size: 0.65rem;
    }

    .research-article-description {
        font-size: 0.73rem;
        line-height: 1.4;
    }

    .research-article-btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .research-article-url {
        font-size: 0.6rem;
        max-width: 200px;
    }

    .research-articles-container {
        gap: 0.95rem;
    }
}

/* Research Articles Section Styling */
.research-articles-section {
    animation: fadeInSection 0.8s ease forwards;
    opacity: 1;
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Base styles for desktop - only apply on 1200px+ */
@media (min-width: 1200px) {
    .research-articles-section .section-title {
        margin-bottom: 2.5rem;
        font-size: 2.5rem;
        font-weight: 700;
        color: white;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        border-bottom: 3px solid rgba(255, 255, 255, 0.3);
        padding-bottom: 1.5rem;
        text-align: left;
    }

    .research-articles-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .research-article-item {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 8px;
        padding: 1.5rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        animation: slideInUp 0.6s ease forwards;
        opacity: 0;
        overflow: hidden;
    }

    .research-article-image-wrapper {
        height: 160px;
        margin: -1.5rem -1.5rem 1rem -1.5rem;
        border-radius: 8px 8px 0 0;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f0f0f0;
    }

    .research-article-title {
        font-size: 1.3rem;
        font-weight: 600;
        color: #1a1a1a;
        margin-bottom: 0.8rem;
        line-height: 1.4;
    }

    .research-article-authors {
        font-size: 0.95rem;
        color: #555;
        margin-bottom: 0.6rem;
        font-style: italic;
    }

    .research-article-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 1rem;
        font-size: 0.9rem;
        color: #666;
    }

    .research-article-description {
        color: #444;
        line-height: 1.6;
        margin-bottom: 1rem;
        font-size: 0.95rem;
    }

    .research-article-btn {
        display: inline-block;
        margin-top: 1rem;
        padding: 0.5rem 1rem;
        background: #0066cc;
        color: white;
        text-decoration: none;
        font-weight: 600;
        border-radius: 4px;
        transition: all 0.2s ease;
        border: none;
        cursor: pointer;
    }

    .research-article-btn:hover {
        background: #0052a3;
        transform: translateY(-2px);
    }

    /* Desktop: Published Articles Section */
    .published-articles-section {
        padding: 0;
        border-radius: 12px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    }

    .published-articles-section .section-title {
        color: #1a1a1a;
        text-shadow: none;
        border-bottom: 3px solid #1a1a1a;
        text-align: left;
        margin: 0;
        font-size: 2.5rem;
        padding: 3rem 3rem 2rem 3rem;
    }

    .published-articles-section .animated-section-title {
        color: #1a1a1a;
    }

    .published-articles-section .animated-section-title::after {
        background: linear-gradient(90deg, #1a1a1a, rgba(26, 26, 26, 0.7));
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .published-articles-container {
        background: #fafafa;
        padding: 3rem;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .book-chapters-title {
        font-size: 2.5rem;
        padding: 3rem 3rem 2rem 3rem;
    }

    .book-chapters-container {
        padding: 3rem;
        gap: 2rem;
    }

    .nonfiction-prose-title {
        font-size: 2.5rem;
        padding: 3rem 3rem 2rem 3rem;
    }

    .nonfiction-prose-container {
        padding: 3rem;
        gap: 2rem;
    }
}

/* Mobile and shared styles */
.research-articles-section .section-title {
    color: white;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    text-align: left;
}

.research-articles-section .animated-section-title {
    color: white;
}

.research-articles-section .animated-section-title::after {
    background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.7));
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.research-articles-container {
    display: flex;
    flex-direction: column;
}

.research-article-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 1;
    overflow: hidden;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.research-article-item.animate-in {
    animation: slideInUp 0.6s ease forwards;
}

.research-article-title {
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    margin-top: 0;
    font-size: 1.3rem;
    width: 100%;
    opacity: 1;
}

.research-article-item.animate-in .research-article-title {
    animation: titleSlideIn 0.6s ease forwards;
    opacity: 0;
}

.research-article-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
}

.research-article-item.animate-in .research-article-content {
    animation: fadeIn 0.6s ease forwards;
}

@media (min-width: 768px) {
    .research-article-content {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .research-article-left {
        flex: 0 0 35%;
        display: flex;
        flex-direction: column;
    }
    
    .research-article-right {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
}

.research-article-item.animate-in:nth-child(1) { animation-delay: 0.2s; }
.research-article-item.animate-in:nth-child(2) { animation-delay: 0.3s; }
.research-article-item.animate-in:nth-child(3) { animation-delay: 0.4s; }
.research-article-item.animate-in:nth-child(n+4) { animation-delay: 0.5s; }

.research-article-item.animate-in:nth-child(1) .research-article-title { animation-delay: 0.4s; }
.research-article-item.animate-in:nth-child(2) .research-article-title { animation-delay: 0.5s; }
.research-article-item.animate-in:nth-child(3) .research-article-title { animation-delay: 0.6s; }
.research-article-item.animate-in:nth-child(n+4) .research-article-title { animation-delay: 0.7s; }

.research-article-item.animate-in:nth-child(1) .research-article-content { animation-delay: 0.6s; }
.research-article-item.animate-in:nth-child(2) .research-article-content { animation-delay: 0.7s; }
.research-article-item.animate-in:nth-child(3) .research-article-content { animation-delay: 0.8s; }
.research-article-item.animate-in:nth-child(n+4) .research-article-content { animation-delay: 0.9s; }

.research-article-item.animate-in:nth-child(1) .research-article-links { animation-delay: 0.8s; }
.research-article-item.animate-in:nth-child(2) .research-article-links { animation-delay: 0.9s; }
.research-article-item.animate-in:nth-child(3) .research-article-links { animation-delay: 1.0s; }
.research-article-item.animate-in:nth-child(n+4) .research-article-links { animation-delay: 1.1s; }

.research-article-item:hover {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.research-article-authors {
    color: #555;
    font-style: italic;
}

.research-article-meta {
    flex-wrap: wrap;
    color: #666;
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.research-article-year {
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.research-article-description {
    color: #444;
    margin: 0 0 1rem 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.research-article-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    align-items: flex-start;
    opacity: 0;
}

.research-article-item.animate-in .research-article-links {
    animation: fadeIn 0.6s ease forwards;
}

@media (min-width: 768px) {
    .research-article-links {
        margin-left: -1.5rem;
    }
}

.research-article-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
    word-break: break-all;
    transition: color 0.3s ease;
    text-align: left;
}

.research-article-link:hover {
    color: #004499;
    text-decoration: underline;
}

/* Published Articles Section - Same styling as Research Articles */
.published-articles-section {
    animation: fadeInSection 0.8s ease forwards;
    opacity: 1;
}

.published-articles-section .section-title {
    color: white;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    text-align: left;
}

.published-articles-section .animated-section-title {
    color: white;
}

.published-articles-section .animated-section-title::after {
    background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.7));
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.published-articles-container {
    display: flex;
    flex-direction: column;
}

.books-authored-section {
    animation: fadeInSection 0.8s ease forwards;
    opacity: 1;
}

.books-authored-section .section-title {
    color: white;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    text-align: left;
}

.books-authored-container {
    display: flex;
    flex-direction: column;
}

.published-articles-container .research-article-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
    overflow: hidden;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.books-authored-container .research-article-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
    overflow: hidden;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.published-articles-container .research-article-item:nth-child(1) { animation-delay: 0.2s; }
.published-articles-container .research-article-item:nth-child(2) { animation-delay: 0.3s; }
.published-articles-container .research-article-item:nth-child(3) { animation-delay: 0.4s; }
.published-articles-container .research-article-item:nth-child(n+4) { animation-delay: 0.5s; }

.books-authored-container .research-article-item:nth-child(1) { animation-delay: 0.2s; }
.books-authored-container .research-article-item:nth-child(2) { animation-delay: 0.3s; }
.books-authored-container .research-article-item:nth-child(3) { animation-delay: 0.4s; }
.books-authored-container .research-article-item:nth-child(n+4) { animation-delay: 0.5s; }

.published-articles-container .research-article-item:hover {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.books-authored-container .research-article-item:hover {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

@media (min-width: 768px) {
    .published-articles-container .research-article-content {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .published-articles-container .research-article-left {
        flex: 0 0 35%;
        display: flex;
        flex-direction: column;
    }
    
    .published-articles-container .research-article-right {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .published-articles-container .research-article-links {
        margin-left: -1.5rem;
    }

    .books-authored-container .research-article-content {
        flex-direction: row;
        gap: 1.5rem;
    }

    .books-authored-container .research-article-left {
        flex: 0 0 35%;
        display: flex;
        flex-direction: column;
    }

    .books-authored-container .research-article-right {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .books-authored-container .research-article-links {
        margin-left: -1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .published-articles-section .section-title {
        font-size: 2.8rem;
    }

    .books-authored-section .section-title {
        font-size: 2.8rem;
    }
}

@media (min-width: 1200px) {
    .published-articles-section .section-title {
        font-size: 2.8rem;
        margin-bottom: 2.5rem;
        padding-bottom: 1.5rem;
    }

    .books-authored-section .section-title {
        font-size: 2.8rem;
        margin-bottom: 2.5rem;
        padding-bottom: 1.5rem;
    }

    .published-articles-container .research-article-item {
        padding: 1.8rem;
    }

    .books-authored-container .research-article-item {
        padding: 1.8rem;
    }

    .published-articles-container .research-article-title {
        font-size: 1.25rem;
        margin-bottom: 0.8rem;
        font-weight: 600;
    }

    .published-articles-container {
        gap: 2.2rem;
    }

    .books-authored-container {
        gap: 2.2rem;
    }
}

.research-article-link {
    display: inline-block;
    margin-top: 1rem;
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.research-article-link:hover {
    background: #f0f0f0;
    color: #0052a3;
}

.research-article-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.research-article-btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: #0066cc;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.research-article-btn:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Research Article Image Styling */
.research-article-image-wrapper {
    width: 100%;
    height: 200px;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

@media (min-width: 768px) {
    .research-article-image-wrapper {
        height: 240px;
        border-radius: 8px;
    }
}

.research-article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.research-article-item:hover .research-article-image {
    transform: scale(1.05);
}

/* Research Article Section Label */
.research-article-section {
    background: #e8d5f2;
    color: #6b2c91;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
    display: inline-block;
}

.research-article-url {
    font-size: 0.85rem;
    color: #666;
    word-break: break-all;
    max-width: 300px;
}

/* Firestore Research Cards - responsive polish */
.research-articles-container {
    gap: 1.25rem;
}

.research-article-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.research-article-right {
    min-width: 0;
}

.research-article-description {
    white-space: pre-line;
}

@media (max-width: 767px) {
    .research-article-item {
        padding: 0.95rem;
    }

    .research-article-content {
        gap: 0.9rem;
    }

    .research-article-title {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }

    .research-article-link {
        font-size: 0.8rem;
    }
}

@media (min-width: 1200px) {
    .research-article-item {
        padding: 1.8rem;
    }

    .research-article-content {
        gap: 2rem;
    }

    .research-article-title {
        font-size: 1.35rem;
    }
}

/* Tablet: Research Articles Section */
@media (min-width: 769px) and (max-width: 1199px) {
    .research-articles-section .section-title {
        font-size: 2.8rem;
    }
}

/* Desktop: Research Articles Section */
@media (min-width: 1200px) {
    .research-articles-section .section-title {
        font-size: 2.8rem;
        margin-bottom: 2.5rem;
        padding-bottom: 1.5rem;
    }

    .research-article-item {
        padding: 1.8rem;
    }

    .research-article-title {
        font-size: 1.25rem;
        margin-bottom: 0.8rem;
        font-weight: 600;
    }

/* Mobile-only heading override for Research Articles section */
@media (max-width: 768px) {
    .research-articles-section .section-title {
        font-size: 1.55rem;
        color: #ffcf5a;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.45);
        border-bottom: 2px solid rgba(255, 207, 90, 0.45);
    }

    .research-articles-section .animated-section-title {
        color: #ffcf5a;
    }

    .research-articles-section .animated-section-title::after {
        background: linear-gradient(90deg, #ffcf5a, rgba(255, 207, 90, 0.55));
        box-shadow: 0 2px 10px rgba(255, 207, 90, 0.3);
    }
}

    .research-article-authors {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }

    .research-article-description {
        font-size: 0.95rem;
    }

    .research-article-meta {
        font-size: 0.9rem;
        gap: 1rem;
    }

    .research-article-link {
        font-size: 0.9rem;
    }

    .research-articles-container {
        gap: 2.2rem;
    }
}

/* Publications Stats Row Styling */
.publications-title-box {
    display: block;
    width: fit-content;
    margin: 0.5rem auto 20rem;
    color: white;
    font-size: 0.65rem;
    font-weight: 500;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.6);
    padding: 0.4rem 1rem;
    letter-spacing: 0.5px;
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
    animation-delay: 0.05s;
    border-radius: 8px;
}

.publications-stats-row {
    display: none;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem 1.2rem;
    flex-wrap: wrap;
    margin-top: 0rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    width: 100%;
    order: 2;
}

.stat-item {
    text-align: center;
    color: white;
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.stat-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-item:nth-child(4) {
    animation-delay: 0.4s;
}

.stat-item:nth-child(5) {
    animation-delay: 0.5s;
}

.stat-number {
    font-size: 0.85rem;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

.stat-label {
    font-size: 0.55rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
}

/* Mobile Hero Section - Enable flex ordering */
.publications-page .hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 100px; /* Space for mobile nav */
    min-height: auto;
}

.publications-page .name-section {
    position: static;
    margin-top: 2rem;
    margin-bottom: 2rem;
    order: 3;
}

.publications-title-box {
    order: 1;
}

.publications-stats-row {
    order: 2;
}

.name-section {
    order: 3;
}

/* Mobile/Tablet only: show stats above PUBLICATIONS in 2 columns */
@media (max-width: 1199px) {
    .publications-title-box {
        margin-top: 0.2rem;
        margin-bottom: 0.35rem;
    }

    .publications-stats-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem 0.8rem;
        width: min(92%, 420px);
        margin: 0 auto 1.2rem;
        padding: 0;
    }

    .publications-stats-row .stat-item {
        flex: initial;
        min-width: 0;
    }

    .publications-stats-row .stat-item:last-child {
        grid-column: 1 / -1;
    }

    .publications-page .name-section {
        margin-top: 0.8rem;
    }
}

/* Mobile only: tighten title-to-stats spacing in hero section */
@media (max-width: 767px) {
    .publications-title-box {
        margin-top: 0.2rem;
        transform: translateY(-4rem);
        margin-bottom: 0.2rem;
    }

    .publications-stats-row {
        margin-top: 0;
    }
}

/* Tablet Styling */
@media (min-width: 768px) {
    .publications-title-box {
        font-size: 0.75rem;
        padding: 0.5rem 1.5rem;
        margin-top: -3.5rem;
        margin-bottom: 1.2rem;
        border: 2.5px solid rgba(255, 255, 255, 0.6);
        order: 1;
    }

    .publications-stats-row {
        gap: 1.8rem;
        margin-top: 0rem;
        margin-bottom: 1.5rem;
        padding: 0 1.5rem;
        flex-wrap: nowrap;
        order: 2;
    }

    .name-section {
        order: 3;
    }
    }

    .stat-item {
        min-width: 100px;
        flex: 1 1 auto;
    }

    .stat-number {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }


/* Desktop Styling */
@media (min-width: 1200px) {
    .hero-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .publications-title-box {
        display: block;
        font-size: 0.7rem;
        padding: 0.55rem 2rem;
        margin-bottom: 2rem;
        margin-top: 2rem;
        border: 2.5px solid rgba(255, 255, 255, 0.7);
        order: 0;
    }

    .publications-stats-row {
        gap: 3rem;
        margin-bottom: 2.5rem;
        padding: 0 3rem 0 3rem;
        justify-content: space-around;
        flex-wrap: nowrap;
        width: 100%;
        order: 1;
        display: flex;
    }

    .stat-item {
        min-width: 130px;
        flex: 1;
        flex-basis: auto;
    }

    .stat-number {
        font-size: 2.2rem;
        margin-bottom: 0.3rem;
    }

    .stat-label {
        font-size: 1rem;
        min-width: auto;
    }
}

/* Publications sections label - Published Articles */
.publications-section-wrapper .section-label {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1976d2;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

@media (min-width: 1200px) {
    .publications-section-wrapper .section-label {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.8rem;
        border-bottom: 3px solid #1976d2;
        display: inline-block;
        margin-left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .research-articles-section .section-label {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
}

/* Final mobile-only override: Publications -> Research Articles heading color */
@media (max-width: 768px) {
    .publications-page .research-articles-section .section-title,
    .publications-page .research-articles-section .animated-section-title {
        color: #35f2d0 !important;
    }

    .publications-page .research-articles-section .section-title {
        border-bottom-color: rgba(53, 242, 208, 0.5) !important;
    }

    .publications-page .research-articles-section .animated-section-title::after {
        background: linear-gradient(90deg, #35f2d0, rgba(53, 242, 208, 0.45)) !important;
        box-shadow: 0 2px 10px rgba(53, 242, 208, 0.25) !important;
    }
}

/* Publications page - Published Article section */
.publications-page .publications-published-section {
    margin-top: 1.5rem;
}

.publications-page .publications-published-section .section-title {
    color: #1976d2;
    text-align: center;
    border-bottom: 3px solid rgba(25, 118, 210, 0.3);
    margin-bottom: 1.5rem;
}

.publications-page .publications-published-section .animated-section-title {
    color: #1976d2;
}

.publications-page .publications-published-section .animated-section-title::after {
    background: linear-gradient(90deg, #1976d2, rgba(25, 118, 210, 0.5));
    box-shadow: 0 2px 10px rgba(25, 118, 210, 0.3);
}

.publications-page .publications-published-container {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

@media (max-width: 768px) {
    .publications-page .publications-published-section .section-title {
        font-size: 1.55rem;
        margin-bottom: 1.1rem;
    }

    .publications-page .publications-published-container {
        gap: 0.95rem;
    }
}

@media (min-width: 1200px) {
    .publications-page .publications-published-section .section-title {
        font-size: 2.7rem;
        margin-bottom: 2rem;
    }

    .publications-page .publications-published-container {
        gap: 1.75rem;
    }
}

/* Publications page - Books Authored, Edited, Translated section */
.publications-page .books-authored-section {
    margin-top: 2rem;
    padding: 1.4rem 1rem 1.1rem;
    background: #eaf4ff;
    border-radius: 12px;
    border: 1px solid rgba(25, 118, 210, 0.16);
    position: relative;
}

.publications-page .books-authored-section::before {
    content: '';
    position: absolute;
    top: -1.05rem;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(25, 118, 210, 0), rgba(25, 118, 210, 0.55), rgba(25, 118, 210, 0));
}

.publications-page .books-authored-title {
    color: #1976d2;
    text-align: center;
    border-bottom: 3px solid rgba(25, 118, 210, 0.3);
    margin-bottom: 1.25rem;
}

.publications-page .books-authored-container {
    min-height: 40px;
}

@media (max-width: 768px) {
    .publications-page .books-authored-section {
        margin-top: 1.7rem;
        padding: 1rem 0.8rem 0.8rem;
    }

    .publications-page .books-authored-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
}

@media (min-width: 1200px) {
    .publications-page .books-authored-section {
        margin-top: 2.5rem;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 2rem max(2rem, calc((100vw - 1200px) / 2 + 1.6rem)) 1.5rem;
        border-radius: 0;
    }

    .publications-page .publications-content > .publications-section-wrapper:nth-child(4) {
        margin-top: -4rem;
    }

    .publications-page .publications-content > .publications-section-wrapper:nth-child(6) {
        margin-top: -4rem;
    }

    .publications-page .publications-content > .publications-section-wrapper:nth-child(7) {
        margin-top: -4rem;
    }

    .publications-page .books-authored-title {
        font-size: 2.4rem;
        margin-bottom: 1.8rem;
    }
}

/* Final override: Poetry Anthology must stay 2-column on tablet and desktop */
.publications-page .poetry-anthology-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .publications-page .poetry-anthology-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .publications-page .poetry-anthology-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
