/* ============================================================
   Department Page Styles (AISRC) - Cleaned & Deduplicated
   All background images now consistently loaded from img/ folder
   ============================================================ */

/* ===== Base Banner / Section (default = marathi) ===== */
.dept-banner {
  position: relative;
  min-height: 260px;
  padding: 70px 0 60px;
  display: flex;
  align-items: center;
  background-color: #3b0a0f;
  background-image: url('../img/marathi3.avif');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.dept-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.45);
  z-index: 1;
}
.dept-banner .container { position: relative; z-index: 2; }
.dept-banner-content { text-align: center; color: #fff; }
.dept-banner-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 4px 18px;
  border-radius: 30px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}
.dept-banner-content h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.75);
}
.dept-breadcrumb a { color: #f3d27a; text-decoration: none; font-weight: 600; }
.dept-breadcrumb span { color: #fff; opacity: 0.8; margin: 0 6px; }

.dept-section {
  position: relative;
  padding: 55px 0;
  background-color: #fdfaf4;
  background-image: url('../img/marathi3.avif');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
.dept-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(253, 250, 244, 0.93);
  z-index: 0;
}
.dept-section .container { position: relative; z-index: 1; }

/* ===== Department-specific background overrides ===== */

/* English */
.dept-banner-english { background-image: url('../img/english2.avif'); }
.dept-banner-english::before { background: transparent; }
.dept-section-english { background-image: url('../img/english2.avif'); background-color: #ffffff; }
.dept-section-english::before { background: rgba(255, 255, 255, 0.85); }

/* Economics */
.dept-banner-economics { background-image: url('../img/economic.jpg'); }
.dept-section-economics { background-image: url('../img/economic.jpg'); background-color: #ffffff; }
.dept-section-economics::before { background: rgba(255, 255, 255, 0.85); }

/* Political Science */
.dept-banner-political { background-image: url('../img/polticalsci2.avif'); }
.dept-section-political { background-image: url('../img/polticalsci2.avif'); background-color: #ffffff; }
.dept-section-political::before { background: rgba(255, 255, 255, 0.85); }

/* Sociology */
.dept-banner-sociology { background-image: url('../img/sociology2.avif'); }
.dept-section-sociology { background-image: url('../img/sociology2.avif'); background-color: #ffffff; }
.dept-section-sociology::before { background: rgba(255, 255, 255, 0.85); }

/* Music */
.dept-banner-music { background-image: url('../img/music22.png'); }
.dept-section-music { background-image: url('../img/music22.png'); background-color: #ffffff; }
.dept-section-music::before { background: rgba(255, 255, 255, 0.85); }

/* Library Science */
.dept-banner-library { background-image: url('../img/libaray22.avif'); }
.dept-section-library { background-image: url('../img/libaray22.avif'); background-color: #ffffff; }
.dept-section-library::before { background: rgba(255, 255, 255, 0.85); }

/* Military */
.dept-banner-military { background-image: url('../img/army.avif'); }
.dept-section-military { background-image: url('../img/army.avif'); background-color: #ffffff; }
.dept-section-military::before { background: rgba(255, 255, 255, 0.85); }

/* Mathematics */
.dept-banner-mathematics { background-image: url('../img/mathematics.avif'); }
.dept-section-mathematics { background-image: url('../img/mathematics.avif'); background-color: #ffffff; }
.dept-section-mathematics::before { background: rgba(255, 255, 255, 0.85); }

/* Microbiology */
.dept-banner-microbiology { background-image: url('../img/microbio.jpg'); }
.dept-section-microbiology { background-image: url('../img/microbio.jpg'); background-color: #ffffff; }
.dept-section-microbiology::before { background: rgba(255, 255, 255, 0.85); }

/* Chemistry */
.dept-banner-chemistry { background-image: url('../img/chemistary.avif'); }
.dept-section-chemistry { background-image: url('../img/chemistary.avif'); background-color: #ffffff; }
.dept-section-chemistry::before { background: rgba(255, 255, 255, 0.85); }

/* Zoology */
.dept-banner-zoology { background-image: url('../img/zoology.avif'); }
.dept-section-zoology { background-image: url('../img/zoology.avif'); background-color: #ffffff; }
.dept-section-zoology::before { background: rgba(255, 255, 255, 0.85); }

/* Computer Science */
.dept-banner-computerscience { background-image: url('../img/compsic.avif'); }
.dept-section-computerscience { background-image: url('../img/compsic.avif'); background-color: #ffffff; }
.dept-section-computerscience::before { background: rgba(255, 255, 255, 0.85); }

/* Physics */
.dept-banner-physics { background-image: url('../img/physicsback.avif'); }
.dept-section-physics { background-image: url('../img/physicsback.avif'); background-color: #ffffff; }
.dept-section-physics::before { background: rgba(255, 255, 255, 0.85); }

/* Women's Study Centre (WSC) - solid color, no image */
.dept-banner-wsc { background-color: #7a1d24; background-image: none; }
.dept-section-wsc { background-color: #faf7f0; background-image: none; }
.dept-section-wsc::before { background: transparent; }

/* ===== Profile Card ===== */
.dept-profile-card {
  background: #fff;
  border: 1px solid #f0dfb8;
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 34px;
  box-shadow: 0 15px 35px rgba(198,142,44,.10);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.dept-profile-photo {
  width: 200px;
  height: 240px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 10px 25px rgba(59,10,15,.2);
  background: #f4f0e6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.dept-profile-photo:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 32px rgba(59,10,15,.3);
}
.dept-profile-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.dept-profile-info { flex: 1; min-width: 240px; }
.dept-profile-info h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #3b0a0f;
  font-size: 24px;
  margin-bottom: 6px;
}
.dept-profile-info .dept-desig {
  color: #b8262f;
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 6px;
}
.dept-profile-info .dept-college {
  color: #6b6b6b;
  font-size: 16px;
  margin-bottom: 16px;
}
.dept-profile-info p {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.6;
  color: #3a3a3a;
}
.dept-profile-info p strong { color: #3b0a0f; }

/* Profile road-map link */
.dept-profile-link {
  display: inline-block;
  margin-bottom: 30px;
  font-size: 14.5px;
  font-weight: 600;
  color: #1a5ea8;
  text-decoration: underline;
}
.dept-profile-link:hover { color: #b8262f; }

/* ===== Content Blocks ===== */
.dept-block { margin-bottom: 34px; }
.dept-block-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: #3b0a0f;
  border-left: 4px solid #b8262f;
  padding-left: 12px;
  margin-bottom: 16px;
}
.dept-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dept-list li {
  font-size: 14.5px;
  color: #3a3a3a;
  padding: 7px 0 7px 24px;
  position: relative;
  border-bottom: 1px dashed #ece3d3;
}
.dept-list li, .dept-list li * {
  color: #3a3a3a !important;
  text-decoration: none !important;
}
.dept-list.dept-list-bold li { font-weight: 700 !important; }
.dept-list li:last-child { border-bottom: none; }
.dept-list li::before {
  content: "\f0da";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #c6832c;
  position: absolute;
  left: 0;
}
.dept-para {
  font-size: 14.5px;
  line-height: 1.9;
  color: #3a3a3a;
  text-align: justify;
}
.dept-highlight-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #d6600f;
  margin-bottom: 10px;
}
.dept-vision-list { list-style: none; padding: 0; margin: 0; counter-reset: dept-v; }
.dept-vision-list li {
  counter-increment: dept-v;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.8;
  color: #3a3a3a;
  padding: 6px 0 6px 26px;
  position: relative;
}
.dept-vision-list li::before {
  content: counter(dept-v) ")";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #b8262f;
}
.dept-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.dept-links a {
  display: inline-block;
  background: #fdf1e6;
  border: 1px solid #f0dfb8;
  color: #7a1d24;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 30px;
  text-decoration: none;
  transition: all .25s ease;
}
.dept-links a:hover { background: #b8262f; color: #fff; }

/* ===== Session Banner ===== */
.dept-session-banner {
  background: #3b0a0f;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .5px;
  padding: 12px 22px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0;
}

/* ===== Departmental Activities ===== */
.dept-activities-wrap {
  background: #f8f6f2;
  border-radius: 12px;
  padding: 28px;
  margin-top: 0;
}
.dept-activities-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: #3b0a0f;
  margin-bottom: 18px;
}
.dept-activity-item { margin-bottom: 30px; }
.dept-activity-item:last-child { margin-bottom: 0; }
.dept-activity-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16.5px;
  color: #b8262f;
  margin-bottom: 8px;
}
.dept-activity-title i { color: #c6832c; margin-right: 6px; font-size: 12px; }

/* Activity image gallery */
.dept-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.dept-gallery a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(59,10,15,.15);
  border: 1px solid #f0dfb8;
}
.dept-gallery img {
  width: 100%;
  height: 660px;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.dept-gallery a:hover img { transform: scale(1.06); }

/* ===== Tables (Scope of Placements / Study Centre / Members) ===== */
.dept-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}
.dept-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.dept-table caption {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16.5px;
  color: #b8262f;
  padding: 10px 0;
  caption-side: top;
  text-align: center;
}
.dept-table th, .dept-table td {
  border: 1px solid #e4d6b8;
  padding: 10px 16px;
  text-align: center;
  color: #3a3a3a;
}
.dept-table th {
  background: #fdf1e6;
  color: #3b0a0f;
  font-weight: 700;
}
.dept-table tr:nth-child(even) td { background: #f8f6f2; }
.dept-table td.dept-table-photo-cell { padding: 6px 16px; }
.dept-table-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border: 2px solid #f0dfb8;
}

/* ===== Tab Navigation (Activities page - generic) ===== */
.activities-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: none;
  margin-bottom: 0;
}
.activities-tab-nav .nav-link {
  border: none;
  border-radius: 4px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 15px;
  color: #3b0a0f;
  background: #f4f0e6;
}
.activities-tab-nav .nav-link.active { background: #b8262f; color: #fff; }
.activities-tab-content {
  border-top: 3px solid #b8262f;
  padding-top: 26px;
  margin-top: 0;
}

/* ============================================================
   College Activities Page - Self-contained styles
   All classes prefixed "ca-" to avoid clash with other pages
   ============================================================ */
.ca-banner {
  background-color: #3b0a0f;
  background-size: cover;
  background-position: center;
  padding: 70px 0;
  position: relative;
}
.ca-banner-content { position: relative; z-index: 2; }
.ca-banner-tag {
  display: inline-block;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.ca-banner-content h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 32px;
  margin-bottom: 10px;
}
.ca-breadcrumb { font-size: 14px; color: rgba(255,255,255,.8); }
.ca-breadcrumb a { color: #fff; text-decoration: none; font-weight: 600; }
.ca-breadcrumb span { margin: 0 6px; }

.ca-section { background: #faf7f0; padding: 50px 0; }

.ca-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: none;
  margin-bottom: 0;
}
.ca-tab-nav .nav-link {
  border: none;
  border-radius: 4px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 15px;
  color: #3b0a0f;
  background: #f4f0e6;
}
.ca-tab-nav .nav-link.active { background: #b8262f; color: #fff; }
.ca-tab-content {
  border-top: 3px solid #b8262f;
  padding-top: 26px;
  margin-top: 0;
}

.ca-block { margin-bottom: 34px; }
.ca-block-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #d6600f;
  margin-bottom: 10px;
}
.ca-para {
  font-size: 14.5px;
  line-height: 1.9;
  color: #3a3a3a;
  text-align: justify;
}

.ca-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.ca-gallery a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(59,10,15,.15);
  border: 1px solid #f0dfb8;
}
.ca-gallery img {
  width: 100%;
  height: 333px;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.ca-gallery a:hover img { transform: scale(1.06); }

/* ===== Responsive ===== */
@media (max-width: 576px) {
  .dept-banner-content h1 { font-size: 24px; }
  .dept-profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  .dept-profile-photo {
    width: 100%;
    max-width: 280px;
    height: 260px;
  }
  .dept-profile-info { width: 100%; text-align: center; }
  .dept-profile-info h3 { font-size: 22px; }
  .dept-profile-info .dept-desig { font-size: 16px; }
  .dept-profile-info .dept-college { font-size: 15px; }
  .dept-profile-info p { font-size: 15px; text-align: left; }
  .dept-activities-wrap { padding: 18px; }
  .dept-gallery img { height: 200px; }
  .ca-banner-content h1 { font-size: 24px; }
  .ca-gallery img { height: 200px; }
}

/* ==========================================
   STAFF TABLE
   Bootstrap 5 + Screenshot Theme
========================================== */

.staff-section {
    background: #ffffff;
}


/* Table */

.staff-table {
    background: #fcf8f0;
    border-color: #e5c58b;
}


/* Header */

.staff-table thead th {
    background: #f7eddd;
    color: #5b2d08;
    font-size: 16px;
    font-weight: 700;
    padding: 15px;
    border-color: #e5c58b;
    vertical-align: middle;
}


/* Body */

.staff-table tbody td {
    background: #fcf8f0;
    color: #18395f;
    font-size: 15px;
    line-height: 1.6;
    padding: 18px 15px;
    border-color: #e5c58b;
    vertical-align: middle;
}


/* Staff Name */

.staff-name {
    color: #173f70;
    font-size: 16px;
    font-weight: 600;
}


/* Staff Photo */

.staff-img {
    width: 120px;
    height: 140px;
    object-fit: cover;
    padding: 4px;
    background: #ffffff;
    border: 1px solid #d9b875;
}


/* Hover */

.staff-table tbody tr:hover td {
    background: #faf2e5;
}


/* Mobile */

@media (max-width: 767.98px) {

    .staff-table {
        min-width: 700px;
    }

    .staff-table thead th {
        font-size: 14px;
        padding: 12px;
    }

    .staff-table tbody td {
        font-size: 14px;
        padding: 12px;
    }

    .staff-img {
        width: 90px;
        height: 110px;
    }

}

.staff-popup-img {
    cursor: pointer;
    transition: 0.3s ease;
}

.staff-popup-img:hover {
    opacity: 0.8;
    transform: scale(1.03);
}


/* Staff Image Modal */
/* =========================================
   STAFF IMAGE MODAL
========================================= */

.staff-image-modal {
    background: #fcf8f0;
    border: 1px solid #d9b875;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}


/* Modal Header */

.staff-image-modal .modal-header {
    background: #f7eddd;
    border-bottom: 1px solid #d9b875;
    padding: 14px 20px;
}

.staff-image-modal .modal-title {
    color: #5b2d08;
    font-size: 18px;
    font-weight: 700;
}


/* Close Button */

.staff-image-modal .btn-close {
    opacity: 0.7;
}

.staff-image-modal .btn-close:hover {
    opacity: 1;
}


/* Modal Body */

.staff-image-modal .modal-body {
    background: #fcf8f0;
    padding: 20px;
    text-align: center;
}


/* Large Image */

.staff-modal-img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;

    /* Screen ke andar image rahegi */
    max-height: 65vh;

    object-fit: contain;

    margin: 0 auto;

    background: #ffffff;
    border: 1px solid #d9b875;
    padding: 5px;

    border-radius: 5px;
}


/* =========================================
   CLICKABLE TABLE IMAGE
========================================= */

.staff-popup-img {
    cursor: pointer;
    transition: all 0.25s ease;
}

.staff-popup-img:hover {
    opacity: 0.85;
    transform: scale(1.02);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 576px) {

    .staff-image-modal .modal-header {
        padding: 12px 15px;
    }

    .staff-image-modal .modal-title {
        font-size: 16px;
    }

    .staff-image-modal .modal-body {
        padding: 12px;
    }

    .staff-modal-img {
        max-height: 60vh;
        max-width: 100%;
    }

}