/* Project Detail Page Styles */
.project-detail.section {
    padding-top: 80px;
    padding-bottom: 56px;
    overflow: visible;
}

.project-case-container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding-right: 15px;
    padding-left: 15px;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .project-detail-grid {
        grid-template-columns: minmax(0, 2.1fr) minmax(280px, 0.9fr);
        gap: 3rem;
    }

    .project-sidebar-col {
        position: sticky;
        top: 90px;
        align-self: start;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .project-sidebar-col::-webkit-scrollbar {
        width: 4px;
    }
    .project-sidebar-col::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.1);
        border-radius: 4px;
    }
}

.project-detail .row {
    align-items: flex-start;
}

.project-detail .project-header {
    display: block;
    margin-bottom: 2rem;
}

.project-detail .project-header > .d-flex {
    display: flex !important;
    align-items: center !important;
}

.project-detail .project-header h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    display: inline-block;
    max-width: none;
    word-break: normal;
}

.project-detail .project-content {
    padding: 0;
    background: transparent;
}

.project-detail .project-section-card {
    background: #fff;
    border: 1px solid rgba(44, 62, 80, 0.08);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(22, 43, 67, 0.08);
    margin-bottom: 2rem;
    padding: 1.75rem;
}

.project-detail .project-section-flow {
    margin-bottom: 2.5rem;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.project-detail .project-section-flow > h2 {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
}

.project-detail .project-section-card > h2:first-child {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.project-detail .project-section-card > :last-child {
    margin-bottom: 0;
}

.project-detail .project-meta-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-top: 0;
}

.project-detail .project-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.project-detail .project-meta span,
.project-detail .project-meta .badge {
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
}

.project-detail .project-category {
    background: var(--secondary-color);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
}

.project-detail .tech-badge {
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(52, 152, 219, 0.2);
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-detail .project-date {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    background: #f8f9fa;
    padding: 0.4rem 0.9rem;
    border-radius: 15px;
}

.project-hero-cover {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.hero-cover-img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    display: block;
}

.hero-icon-container {
    min-height: 140px !important;
    padding: 1rem;
    border-radius: 12px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1.5rem !important;
}

.hero-icon-container i {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.main-image {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thumbnail {
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.thumbnail:hover {
    transform: translateY(-5px);
}

.project-detail .project-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.project-detail .project-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-detail .feature-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 1.5rem 0 0;
}

.project-detail .feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 0;
    padding: 1rem 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: background 0.3s ease;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.project-detail .feature-list li:last-child {
    border-bottom: none;
}

.project-detail .feature-list li::marker,
.project-detail .feature-list li::before {
    content: none !important;
}

.project-detail .feature-list li:hover {
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.01);
}

.project-detail .feature-list i {
    font-size: 1rem;
    color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.project-detail .feature-list h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.project-detail .feature-list p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

.project-detail .tech-stack-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 0;
}

.project-detail .tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(22, 43, 67, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 62, 80, 0.08);
}

.project-detail .tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(22, 43, 67, 0.12);
}

.project-detail .tech-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.project-detail .tech-item span {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.project-detail .academic-chip {
    background: rgba(26, 188, 156, 0.14);
    color: #13866c;
    border-color: rgba(26, 188, 156, 0.25);
}

.project-detail .academic-summary-card,
.project-detail .academic-block {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(20, 52, 89, 0.08);
    border: 1px solid rgba(44, 62, 80, 0.08);
}

.project-detail .academic-summary-card {
    margin-bottom: 2rem;
}

.project-detail .academic-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.project-detail .academic-summary-grid a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.project-detail .academic-label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7a8797;
    margin-bottom: 0.35rem;
}

.project-detail .version-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.project-detail .version-card {
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border: 1px solid rgba(52, 152, 219, 0.15);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-detail .version-card .project-link {
    margin-top: auto;
    padding-top: 1rem;
    align-self: flex-start;
}

.project-detail .version-card-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.project-detail .version-card h3 {
    font-size: 1.05rem;
    margin: 0;
    color: var(--primary-color);
    flex: 1 1 auto;
    min-width: 0;
}

.project-detail .version-primary-badge {
    background: var(--secondary-color);
    color: #fff;
    border-radius: 999px;
    padding: 0.22rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-block;
}

.project-detail .version-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    color: #627285;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.project-detail .pdf-embed-shell {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(52, 152, 219, 0.18);
    background: #f4f8fb;
}

.project-detail .pdf-embed-shell iframe {
    width: 100%;
    min-height: 820px;
    border: 0;
    background: #fff;
}

.project-detail .academic-inline-pdf {
    margin: 2rem 0 1rem;
}

.project-detail .academic-inline-pdf-caption {
    margin-bottom: 1rem;
    color: #4f6476;
    font-size: 0.98rem;
}

.project-detail .academic-inline-pdf-shell {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(44, 62, 80, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.project-detail .academic-inline-pdf-shell iframe {
    display: block;
    width: 100%;
    border: 0;
}

.project-detail .project-sidebar {
    position: sticky;
    top: 96px;
    align-self: flex-start;
}

.project-detail .sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(22, 43, 67, 0.09);
    border: 1px solid rgba(44, 62, 80, 0.07);
    margin-bottom: 2rem;
}

.project-detail .sidebar-widget h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.project-detail .project-info {
    padding: 0;
    margin: 0;
    list-style: none;
}

.project-detail .project-info li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 0.5rem 0;
    margin-bottom: 0;
    background: transparent;
    border-radius: 0;
    border-left: none;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
}

.project-detail .project-info li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.project-detail .project-info strong {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
}

.project-detail .project-info span {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.project-detail .status-active {
    color: #2ecc71 !important;
}

.project-detail .feature-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-detail .feature-highlights li {
    padding: 0.8rem 0;
    color: #666;
    border-bottom: 1px solid #eee;
}

.project-detail .feature-highlights li:last-child {
    border-bottom: none;
}

.project-detail .feature-highlights li::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

@media (max-width: 992px) {
    .project-detail .project-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .project-detail.section {
        padding-top: 126px;
    }

    .project-detail .project-header h1 {
        font-size: 1.95rem;
        max-width: none;
    }

    .project-detail .project-header > .d-flex {
        align-items: flex-start !important;
    }

    .project-detail .feature-list li {
        padding: 1rem;
    }

    .project-detail .project-section-card {
        padding: 1.2rem;
    }

    .project-detail .tech-stack-detailed {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .project-detail .academic-summary-card,
    .project-detail .academic-block {
        padding: 1.1rem;
    }

    .project-detail .pdf-embed-shell iframe {
        min-height: 560px;
    }
}

.project-image-block {
    margin: 1.5rem 0;
    text-align: center;
}
.project-image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.project-image-block.project-image-wide img {
    width: 100%;
}
.project-image-block.project-image-full {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    max-width: 100vw;
}
.project-image-block.project-image-full img {
    width: 100%;
    border-radius: 0;
}
.project-image-block figcaption {
    margin-top: 0.75rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.project-photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.gallery-photo-item {
    margin: 0;
}
.gallery-photo-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}
.gallery-photo-item img:hover {
    transform: scale(1.03);
}
.gallery-photo-item figcaption {
    margin-top: 0.5rem;
    color: #6c757d;
    font-size: 0.85rem;
    text-align: center;
}

@media (max-width: 576px) {
    .project-photo-gallery {
        grid-template-columns: 1fr;
    }
    .gallery-photo-item img {
        height: auto;
    }
}


/* --- Polishing Additions --- */

/* Sidebar Widgets (Cards) */
.project-detail .sidebar-widget {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    margin-bottom: 1.5rem;
}
.project-detail .sidebar-widget h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 0.5rem;
}

/* Typography / Rich Text */
.rich-text-content {
    line-height: 1.7;
    font-size: 1.05rem;
    color: #444;
}
.rich-text-content p {
    margin-bottom: 1.2rem;
}
.rich-text-content h3 {
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
}
.rich-text-content a,
.rich-text-content code {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Photo Gallery Grid */
.project-photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
@media (min-width: 992px) {
    .project-photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1200px) {
    .project-photo-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Admin Toolbar Compactness */
.admin-card-toolbar {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.admin-card:hover > .admin-card-toolbar {
    opacity: 1;
}
.admin-card-toolbar button {
    padding: 0.2rem 0.4rem;
    font-size: 0.85rem;
}

/* Mobile Tweaks */
@media (max-width: 767.98px) {
    .project-header h1 {
        font-size: 1.8rem;
    }
    .project-hero-cover {
        margin-bottom: 1rem;
    }
    .hero-cover-img {
        max-height: 250px;
    }
    .project-photo-gallery {
        grid-template-columns: 1fr;
    }
}

/* Floating PDF Viewer */
#academicPdfModal .modal-dialog {
    max-width: min(1000px, calc(100vw - 80px));
    margin: 1.75rem auto;
}

#academicPdfModal .modal-content {
    height: min(820px, 82vh);
    background-color: #2b3035; /* Dark background matching the site */
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

#academicPdfModal .modal-header {
    background-color: #1a1d20;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 0.75rem 1.25rem;
}

#academicPdfModal .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8f9fa;
    margin: 0;
}

#academicPdfModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

#academicPdfModal .pdf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.25rem;
    background-color: #212529;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap;
    gap: 0.5rem;
}

#academicPdfModal .pdf-toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#academicPdfModal .pdf-toolbar button {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #e9ecef;
}
.project-image-block.project-image-wide img {
    width: 100%;
}
.project-image-block.project-image-full {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    max-width: 100vw;
}
.project-image-block.project-image-full img {
    width: 100%;
    border-radius: 0;
}
.project-image-block figcaption {
    margin-top: 0.75rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.project-photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.gallery-photo-item {
    margin: 0;
}
.gallery-photo-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}
.gallery-photo-item img:hover {
    transform: scale(1.03);
}
.gallery-photo-item figcaption {
    margin-top: 0.5rem;
    color: #6c757d;
    font-size: 0.85rem;
    text-align: center;
}

@media (max-width: 576px) {
    .project-photo-gallery {
        grid-template-columns: 1fr;
    }
    .gallery-photo-item img {
        height: auto;
    }
}


/* --- Polishing Additions --- */

/* Sidebar Widgets (Cards) */
.project-detail .sidebar-widget {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    margin-bottom: 1.5rem;
}
.project-detail .sidebar-widget h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 0.5rem;
}

.project-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-info li {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(0,0,0,0.06);
}

.project-info li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.project-info li strong {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.2rem;
}

.project-info li span {
    font-size: 0.95rem;
    color: #2b3035;
    line-height: 1.4;
}

/* Typography / Rich Text */
.rich-text-content {
    line-height: 1.7;
    font-size: 1.05rem;
    color: #444;
}
.rich-text-content p {
    margin-bottom: 1.2rem;
}
.rich-text-content h3 {
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
}
.rich-text-content a,
.rich-text-content code {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Photo Gallery Grid */
.project-photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
@media (min-width: 992px) {
    .project-photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1200px) {
    .project-photo-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Admin Toolbar Compactness */
.admin-card-toolbar {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.admin-card:hover > .admin-card-toolbar {
    opacity: 1;
}
.admin-card-toolbar button {
    padding: 0.2rem 0.4rem;
    font-size: 0.85rem;
}

/* Mobile Tweaks */
@media (max-width: 767.98px) {
    .project-header h1 {
        font-size: 1.65rem;
        line-height: 1.3;
    }
    .project-hero-cover {
        margin-bottom: 1.25rem;
    }
    .hero-cover-img {
        max-height: 230px;
    }
    .project-photo-gallery {
        grid-template-columns: 1fr;
    }

    /* B1) Mobile Technology Chips & Metadata */
    .project-detail .project-meta-badges {
        gap: 0.4rem;
        margin-bottom: 1.25rem;
    }

    .project-detail .project-meta-badges .tech-badge,
    .project-detail .tech-badge,
    .project-detail .academic-chip {
        font-size: 0.85rem;
        padding: 0.28rem 0.65rem;
        border-radius: 999px;
        line-height: 1.35;
        font-weight: 500;
        min-height: auto;
    }

    .project-detail .project-category,
    .project-detail .project-date {
        font-size: 0.85rem;
        padding: 0.28rem 0.65rem;
        border-radius: 999px;
    }

    /* B2) DOI & PDF Action Badges */
    .project-detail .project-doi-btn,
    .project-detail .project-pdf-btn {
        display: inline-flex;
        align-items: center;
        margin-top: 0.25rem;
        padding: 0.32rem 0.75rem;
        font-size: 0.82rem;
        border-radius: 8px;
        font-weight: 600;
    }

    /* B3 & B4) Version Cards & "Öne Çıkan" Badge */
    .project-detail .version-card {
        padding: 1rem;
    }

    .project-detail .version-card-top {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .project-detail .version-card-top h3 {
        font-size: 0.98rem;
        line-height: 1.35;
        flex: 1 1 auto;
        min-width: 0;
    }

    .project-detail .version-primary-badge {
        font-size: 0.72rem;
        padding: 0.18rem 0.55rem;
        white-space: nowrap;
        flex-shrink: 0;
        margin-top: 0.1rem;
    }

    .project-detail .version-meta {
        gap: 0.6rem;
        font-size: 0.84rem;
        margin-bottom: 0.6rem;
    }
}

/* Floating PDF Viewer */
#academicPdfModal .modal-dialog {
    max-width: min(1100px, calc(100vw - 60px));
    margin: 1.5rem auto;
}

#academicPdfModal .modal-content {
    height: min(850px, 86vh);
    background-color: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#academicPdfModal .modal-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 0.85rem 1.25rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1060;
}

#academicPdfModal .modal-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary-color, #3498db);
    margin: 0;
}

#academicPdfModal .modal-body {
    padding: 0;
    margin: 0;
    background-color: #2b3035;
    position: relative;
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#academicPdfModal #pdf-iframe-viewer {
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    min-height: 0;
    border: none;
    display: block;
}

/* Custom backdrop */
.modal-backdrop.show {
    opacity: 0.5;
}

/* Mobile responsive */
@media (max-width: 767.98px) {
    #academicPdfModal .modal-dialog {
        max-width: calc(100vw - 16px);
        margin: 8px auto;
    }
    
    #academicPdfModal .modal-content {
        height: calc(100dvh - 16px);
    }
}


