/* =============================================================
   Seth Anandram Jaipuria College — inner-page.css
   Styles for all internal pages (two-column layout)
   ============================================================= */

/* ===== PAGE BANNER (breadcrumb bar) ===== */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 60%, var(--primary-light) 100%);
    padding: 2.2rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2360a5fa' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-light), var(--accent-blue));
}

.page-banner-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-banner-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.3px;
    line-height: 1.25;
}

.page-banner-title span {
    display: block;
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-weight: 400;
    font-style: italic;
    color: var(--accent-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 500;
}

.breadcrumb li + li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.55rem;
    color: rgba(255,255,255,0.45);
}

.breadcrumb a {
    color: var(--sky-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb li.active {
    color: rgba(255,255,255,0.65);
}


/* ===== TWO-COLUMN INNER LAYOUT ===== */
.inner-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
    padding: 2.5rem 0 3.5rem;
}


/* ===== LEFT SIDEBAR / MENU ===== */
.inner-sidebar {
    position: sticky;
    top: 80px; /* clears the sticky header */
}

/* Sidebar section block */
.sidebar-block {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
}

/* Sidebar block header */
.sidebar-block-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    padding: 0.95rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.sidebar-block-header i {
    color: var(--accent-light);
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar-block-header h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    letter-spacing: 0.3px;
}

/* Sidebar nav list */
.sidebar-nav {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.sidebar-nav li {
    position: relative;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.62rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    line-height: 1.4;
}

.sidebar-nav a i {
    font-size: 0.75rem;
    color: var(--accent-blue);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.sidebar-nav a:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
    border-left-color: var(--accent-blue);
    padding-left: 1.5rem;
}

.sidebar-nav a:hover i {
    transform: translateX(2px);
}

/* Active state */
.sidebar-nav li.active > a {
    background: linear-gradient(90deg, var(--light-blue), transparent);
    color: var(--primary-blue);
    border-left-color: var(--primary-blue);
    font-weight: 700;
}

.sidebar-nav li.active > a i {
    color: var(--primary-blue);
}

/* Divider between groups */
.sidebar-nav .nav-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0.4rem 1rem;
}

/* Sub-menu (second level) */
.sidebar-nav .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8fafd;
    border-top: 1px solid var(--border-light);
    display: none;
}

.sidebar-nav li.has-sub.open .sub-menu {
    display: block;
}

.sidebar-nav .sub-menu a {
    padding-left: 2.4rem;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-medium);
    border-left-color: transparent;
}

.sidebar-nav .sub-menu a:hover {
    background: var(--sky-blue);
    color: var(--primary-blue);
    padding-left: 2.8rem;
    border-left-color: var(--accent-light);
}

/* Chevron toggle for sub-menus */
.sidebar-nav li.has-sub > a::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6rem;
    margin-left: auto;
    color: var(--text-light);
    transition: transform 0.25s;
}

.sidebar-nav li.has-sub.open > a::after {
    transform: rotate(180deg);
}

/* Sidebar quick-info card */
.sidebar-info-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    border-radius: 12px;
    padding: 1.4rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.sidebar-info-card h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--white);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.sidebar-info-card .info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
}

.sidebar-info-card .info-row:last-child {
    margin-bottom: 0;
}

.sidebar-info-card .info-row i {
    color: var(--accent-light);
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 0.85rem;
}

.sidebar-info-card a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-info-card a:hover {
    color: var(--white);
}

/* Download links block */
.sidebar-downloads {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.sidebar-downloads li a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-downloads li:last-child a {
    border-bottom: none;
}

.sidebar-downloads li a i {
    color: #dc2626;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar-downloads li a:hover {
    background: #fff5f5;
    color: #dc2626;
    padding-left: 1.5rem;
}


/* ===== RIGHT CONTENT AREA ===== */
.inner-content {
    min-width: 0; /* prevents grid blowout */
}

/* Content card wrapper */
.content-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.2rem 2.4rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

/* Page heading inside content */
.content-heading {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.4rem;
    line-height: 1.25;
}

.content-heading + .content-divider {
    margin-top: 0.8rem;
}

/* Blue accent divider */
.content-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.6rem;
}

.content-divider::before {
    content: '';
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border-radius: 2px;
    flex-shrink: 0;
}

.content-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

/* Section sub-heading */
.content-subheading {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 1.8rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--light-blue);
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.content-subheading i {
    color: var(--accent-blue);
    font-size: 0.95rem;
}

/* Body text */
.content-body p {
    font-size: 0.97rem;
    color: var(--text-medium);
    line-height: 1.85;
    margin-bottom: 1.1rem;
}

.content-body p:last-child {
    margin-bottom: 0;
}

/* ===== ORDERED LIST ===== */
.content-ol {
    list-style: none;
    counter-reset: content-counter;
    padding: 0;
    margin: 0 0 1.2rem;
}

.content-ol li {
    counter-increment: content-counter;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.content-ol li:last-child {
    border-bottom: none;
}

.content-ol li::before {
    content: counter(content-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

/* ===== UNORDERED LIST ===== */
.content-ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2rem;
}

.content-ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--border-light);
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.content-ul li:last-child {
    border-bottom: none;
}

.content-ul li::before {
    content: '\f111';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.42rem;
    color: var(--accent-blue);
    flex-shrink: 0;
    margin-top: 0.5rem;
}

/* Checkmark variant */
.content-ul.check-list li::before {
    content: '\f00c';
    font-size: 0.7rem;
    color: #16a34a;
    margin-top: 0.25rem;
}

/* ===== RESPONSIVE TABLE ===== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 10px rgba(26,58,110,0.06);
    margin-bottom: 1.5rem;
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 500px;
}

.content-table thead tr {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
}

.content-table thead th {
    padding: 0.9rem 1.1rem;
    text-align: left;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.content-table thead th:first-child {
    border-radius: 0; /* contained by wrapper */
}

.content-table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}

.content-table tbody tr:last-child {
    border-bottom: none;
}

.content-table tbody tr:nth-child(even) {
    background: #f8fbff;
}

.content-table tbody tr:hover {
    background: var(--light-blue);
}

.content-table tbody td {
    padding: 0.8rem 1.1rem;
    color: var(--text-dark);
    vertical-align: top;
    line-height: 1.5;
}

.content-table tbody td:first-child {
    font-weight: 600;
    color: var(--primary-blue);
}

/* Serial number column */
.content-table .sl-col {
    width: 50px;
    text-align: center;
    font-weight: 700;
    color: var(--text-light) !important;
}

/* Status / badge cells */
.badge-active {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.badge-inactive {
    display: inline-block;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.badge-info {
    display: inline-block;
    background: var(--light-blue);
    color: var(--primary-blue);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

/* Table caption / note */
.table-note {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: -0.75rem;
    margin-bottom: 1.5rem;
}

/* ===== HIGHLIGHT / INFO BOX ===== */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--light-blue);
    border-left: 4px solid var(--accent-blue);
    border-radius: 0 8px 8px 0;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1.5rem;
}

.info-box i {
    color: var(--accent-blue);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.info-box p {
    font-size: 0.92rem;
    color: var(--text-dark);
    line-height: 1.65;
    margin: 0;
}

.info-box.success {
    background: #f0fdf4;
    border-left-color: #16a34a;
}

.info-box.success i {
    color: #16a34a;
}

.info-box.warning {
    background: #fffbeb;
    border-left-color: #d97706;
}

.info-box.warning i {
    color: #d97706;
}

.info-box.danger {
    background: #fff5f5;
    border-left-color: #dc2626;
}

.info-box.danger i {
    color: #dc2626;
}

/* ===== PERSON / PROFILE CARD ===== */
.person-card {
    display: flex;
    align-items: flex-start;
    gap: 1.4rem;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.4rem;
    margin-bottom: 1.2rem;
    transition: box-shadow 0.25s, transform 0.25s;
}

.person-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.person-card .person-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--light-blue);
    flex-shrink: 0;
    background: var(--light-blue);
}

.person-card .person-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
}

.person-card .person-info h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.person-card .person-info .person-designation {
    font-size: 0.82rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.person-card .person-info .person-dept {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.person-card .person-info .person-qualification {
    font-size: 0.8rem;
    color: var(--text-medium);
    font-style: italic;
}

/* Person card grid layout */
.persons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

/* ===== GALLERY GRID (inner page) ===== */
.inner-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.inner-gallery-item {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: transform 0.25s, box-shadow 0.25s;
}

.inner-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

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

.inner-gallery-item:hover img {
    transform: scale(1.08);
}

.inner-gallery-item .gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(13,34,64,0.85), transparent);
    color: var(--white);
    padding: 1rem 0.75rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.inner-gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* ===== NOTICE / DOCUMENT LIST ===== */
.doc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.doc-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}

.doc-list li:last-child {
    border-bottom: none;
}

.doc-list li:hover {
    background: var(--light-blue);
    border-radius: 6px;
}

.doc-list .doc-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fff1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-list .doc-icon i {
    color: #dc2626;
    font-size: 1rem;
}

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

.doc-list .doc-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 0.15rem;
}

.doc-list .doc-meta {
    font-size: 0.75rem;
    color: var(--text-light);
}

.doc-list .doc-download {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

.doc-list .doc-download:hover {
    background: var(--primary-dark);
}

/* ===== CONTENT TABS (within right area) ===== */
.content-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 1.8rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.content-tabs-nav::-webkit-scrollbar { display: none; }

.content-tab-btn {
    padding: 0.7rem 1.3rem;
    border: none;
    background: none;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}

.content-tab-btn:hover {
    color: var(--primary-blue);
}

.content-tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.content-tab-panel {
    display: none;
}

.content-tab-panel.active {
    display: block;
}

/* ===== BACK TO TOP (inner pages) ===== */
/* (re-uses .back-to-top from styles.css) */


/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .inner-layout {
        grid-template-columns: 240px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .inner-layout {
        grid-template-columns: 1fr;
    }

    .inner-sidebar {
        position: static;
    }

    .page-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .content-card {
        padding: 1.4rem 1.2rem;
    }

    .persons-grid {
        grid-template-columns: 1fr;
    }

    .inner-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .person-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
