/* ================================================================
   GNIT — Labs & Document Pages Shared Styles
   Path: /gnit-assets/css/gnit-labs.css
   Used by: cse-labs, ecse-labs, it-labs, all document/MOM pages
   NOTE: All class names are prefixed with gnit- to avoid conflicts.
================================================================ */

/* ----------------------------------------------------------------
   DOCUMENT LIST (used by MOM, Notice, BOG pages)
---------------------------------------------------------------- */
.gnit-doc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 8px 0 40px;
}

.gnit-doc-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: var(--radius-md, 10px);
    padding: 16px 20px;
    text-decoration: none;
    color: var(--gnit-text, #3a4560);
    transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}

.gnit-doc-item:hover {
    border-color: var(--gnit-gold, #f4a226);
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    transform: translateX(4px);
}

.gnit-doc-icon {
    width: 44px;
    height: 44px;
    background: #fff3e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d32f2f;
    font-size: 18px;
    flex-shrink: 0;
}

.gnit-doc-info {
    flex: 1;
    min-width: 0;
}

.gnit-doc-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--gnit-navy, #0d1b3e);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gnit-doc-meta {
    display: block;
    font-size: 12px;
    color: var(--gnit-gray, #6c757d);
}

.gnit-doc-action {
    color: var(--gnit-blue, #1a56db);
    font-size: 14px;
    opacity: .6;
    transition: opacity .2s;
    flex-shrink: 0;
}

.gnit-doc-item:hover .gnit-doc-action { opacity: 1; }

/* ----------------------------------------------------------------
   PDF VIEWER (cse-department-programs)
---------------------------------------------------------------- */
.gnit-pdf-viewer-wrap {
    margin: 8px 0 40px;
}

.gnit-pdf-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gnit-light, #f0f4fa);
    border-left: 4px solid var(--gnit-blue, #1a56db);
    border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0;
    padding: 12px 16px;
    font-size: 13.5px;
    color: var(--gnit-text, #3a4560);
    margin-bottom: 16px;
}

.gnit-pdf-notice i { color: var(--gnit-blue, #1a56db); font-size: 16px; flex-shrink: 0; }
.gnit-pdf-notice a { color: var(--gnit-blue, #1a56db); font-weight: 600; }

.gnit-pdf-frame-wrap {
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
    box-shadow: var(--shadow-md, 0 4px 24px rgba(0,0,0,.12));
    background: #f5f5f5;
}

.gnit-pdf-frame {
    display: block;
    width: 100%;
    height: 1020px;
    border: none;
}

@media (max-width: 768px) {
    .gnit-pdf-frame { height: 600px; }
}

/* ----------------------------------------------------------------
   LAB SECTION HEADINGS
---------------------------------------------------------------- */
.gnit-lab-heading {
    font-family: var(--font-head, 'Merriweather', serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gnit-navy, #0d1b3e);
    margin: 48px 0 20px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--gnit-light, #f0f4fa), #fff);
    border-left: 5px solid var(--gnit-gold, #f4a226);
    border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gnit-lab-heading::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gnit-gold, #f4a226);
    flex-shrink: 0;
}

.gnit-lab-subheading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gnit-blue, #1a56db);
    margin: 28px 0 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ----------------------------------------------------------------
   LAB PHOTO GALLERY
---------------------------------------------------------------- */
.gnit-lab-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 8px 0 40px;
}

@media (max-width: 1024px) {
    .gnit-lab-gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .gnit-lab-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .gnit-lab-gallery { grid-template-columns: 1fr; }
}

.gnit-gallery-item {
    position: relative;
    display: block;
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: var(--gnit-light, #f0f4fa);
    text-decoration: none;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,.08));
    transition: box-shadow .3s ease, transform .3s ease;
}

.gnit-gallery-item:hover {
    box-shadow: var(--shadow-md, 0 4px 24px rgba(0,0,0,.16));
    transform: translateY(-3px);
}

.gnit-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.gnit-gallery-item:hover img { transform: scale(1.06); }

.gnit-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.65) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 12px;
    opacity: 0;
    transition: opacity .3s ease;
}

.gnit-gallery-item:hover .gnit-gallery-overlay { opacity: 1; }

.gnit-gallery-overlay span {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

/* ----------------------------------------------------------------
   TABLE OVERRIDES for lab detail tables
---------------------------------------------------------------- */
.content-table td strong u { font-size: 13px; }
.content-table td ol,
.content-table td ul {
    margin: 4px 0 0 16px;
    padding: 0;
}
.content-table td li { font-size: 13.5px; line-height: 1.6; }

/* ----------------------------------------------------------------
   RESPONSIVE ADJUSTMENTS
---------------------------------------------------------------- */
@media (max-width: 768px) {
    .gnit-doc-title { white-space: normal; }
    .gnit-lab-heading { font-size: 1.1rem; }
}
