/* =============================================
   OWS Products Grid — Urban-Know Style
   ============================================= */

/* ---------- Page Banner ---------- */
.products-banner {
    position: relative; 
    height: 280px;
    background: url('../media/gallery/products/working_paper_banner.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 76px; /* below fixed navbar */
}
.products-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(51, 51, 51, 0.75);
}
.products-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}
.products-banner-subtitle {
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 500;
    color: #F5A623;
}
.products-banner-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.separator-white {
    width: 60px;
    height: 3px;
    background: #F5A623;
    margin: 15px auto 0;
}

/* ---------- Papers Grid ---------- */
.papers-grid-section {
    padding: 60px 0;
    background: #f9f9f9;
}
.papers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ---------- Paper Card ---------- */
.paper-card {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}
.paper-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    color: inherit;
    text-decoration: none;
}

/* ---------- Cover Image + Overlay ---------- */
.paper-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}
.paper-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.paper-card:hover .paper-cover img {
    transform: scale(1.05);
}

/* Hover overlay */
.paper-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 25px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.paper-card:hover .paper-overlay {
    opacity: 1;
}
.paper-number {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #F5A623;
    font-weight: 600;
    margin-bottom: 12px;
}
.paper-overlay-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin-bottom: 12px;
}
.paper-overlay-author {
    font-size: 13px;
    color: #777;
    margin-bottom: 16px;
}
.paper-overlay-cta {
    font-size: 13px;
    font-weight: 600;
    color: #F5A623;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---------- Back Link ---------- */
.btn-back-outputs {
    display: inline-block;
    color: #555;
    font-size: 15px;
    text-decoration: none;
    border: 2px solid #ddd;
    padding: 10px 24px;
    border-radius: 30px;
    transition: all 0.3s ease;
}
.btn-back-outputs:hover {
    color: #F5A623;
    border-color: #F5A623;
}

/* =============================================
   Detail Page Styles (urban-know layout)
   ============================================= */

.detail-banner {
    background: #444;
    padding: 50px 0;
    text-align: center;
    margin-top: 76px;
}
.detail-banner h1 {
    color: #fff;
    font-size: 28px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

.detail-content {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    align-items: start;
}
.detail-cover {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.detail-cover-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.detail-cover-links a {
    color: #F5A623;
    font-weight: 600;
    text-decoration: underline;
    font-size: 14px;
}
.detail-cover-links a:hover {
    color: #d4891c;
}
.detail-info h2 {
    font-size: 26px;
    font-weight: 700;
    color: #2a7ab5;
    line-height: 1.3;
    margin-bottom: 15px;
}
.detail-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}
.detail-authors {
    font-size: 15px;
    color: #F5A623;
    font-weight: 600;
    margin-bottom: 25px;
}
.detail-abstract-label {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}
.detail-abstract {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    text-align: justify;
    margin-bottom: 30px;
}
.detail-abstract p {
    margin-bottom: 15px;
}
.detail-keywords {
    font-size: 13px;
    color: #777;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
    margin-top: 10px;
}
.btn-read-paper {
    display: inline-block;
    background: #F5A623;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 40px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
    margin-top: 10px;
}
.btn-read-paper:hover {
    background: #d4891c;
    color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .papers-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    .products-banner-title { font-size: 28px; }
    .detail-content { grid-template-columns: 280px 1fr; gap: 35px; }
}
@media (max-width: 768px) {
    .products-banner { height: 220px; }
    .products-banner-title { font-size: 22px; letter-spacing: 1px; }
    .detail-content { grid-template-columns: 1fr; gap: 30px; }
    .detail-content .detail-left { max-width: 300px; margin: 0 auto; }
}
@media (max-width: 600px) {
    .papers-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
    .products-banner { height: 180px; }
    .products-banner-title { font-size: 18px; }
    /* Always show overlay on mobile (no hover) */
    .paper-overlay { opacity: 1; background: rgba(255,255,255,0.88); }
}