/**
 * PEC Department Pages - Sticky Sidebar Navigation
 * 4-column sidebar, 8-column content area
 */

/* ========== DEPARTMENT PAGE HEADER (uses breadcrumb hero) ========== */
.pec-page-hero-subtitle {
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin: 0.75rem 0 0 0;
  line-height: 1.4;
}

/* ========== DEPARTMENT CONTENT AREA ========== */
.pec-department-content {
  padding: 60px 0;
  background: #fff;
  position: relative;
}

/* ========== SIDEBAR NAVIGATION (4 columns) ========== */
.pec-department-sidebar {
  position: relative;
}

.pec-department-nav {
  background: #fff;
  border-radius: var(--pec-radius, 16px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 0;
  position: relative;
  z-index: 100;
  display: block;
  width: 100%;
}

.pec-department-nav-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pec-black, #1a1a1a);
  margin: 0;
  padding: 24px 24px 16px 24px;
  border-bottom: 2px solid rgba(190, 0, 0, 0.1);
  background: #fff;
  z-index: 10;
  border-radius: var(--pec-radius, 16px) var(--pec-radius, 16px) 0 0;
}

/* Removed custom scrollbar styles since we're not using overflow-y anymore */

.pec-department-nav-list {
  list-style: none;
  padding: 8px 0 24px 0;
  margin: 0;
}

.pec-department-nav-list li {
  margin: 0;
  padding: 0;
}

.pec-department-nav-link {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  color: var(--pec-black, #1a1a1a);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  position: relative;
  gap: 10px;
}

.pec-department-nav-link i {
  font-size: 0.75rem;
  color: var(--pec-red, #be0000);
  opacity: 0.6;
  transition: all 0.3s ease;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.pec-department-nav-link:hover {
  color: var(--pec-red, #be0000);
  background: rgba(190, 0, 0, 0.05);
  border-left-color: var(--pec-red, #be0000);
  padding-left: 28px;
}

.pec-department-nav-link:hover i {
  opacity: 1;
  transform: translateX(3px);
}

.pec-department-nav-link.active {
  color: var(--pec-red, #be0000);
  background: rgba(190, 0, 0, 0.08);
  border-left-color: var(--pec-red, #be0000);
  font-weight: 600;
}

.pec-department-nav-link.active i {
  opacity: 1;
  color: var(--pec-red, #be0000);
}

.pec-department-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--pec-red, #be0000);
}

/* ========== MAIN CONTENT AREA (8 columns) ========== */
.pec-department-main-content {
  background: #fff;
  position: relative;
  min-height: 400px; /* Ensure content area has minimum height */
}

/* ========== TAB CONTENT SYSTEM ========== */
.pec-tab-content-wrapper {
  position: relative;
  width: 100%;
}

.pec-tab-content {
  display: none;
  opacity: 0;
  animation: fadeOut 0.3s ease-out forwards;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.pec-tab-content.active {
  display: block;
  opacity: 1;
  animation: fadeIn 0.4s ease-in forwards;
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e8e8e8;
}

/* Smooth fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth fade-out animation */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Ensure active tab content maintains section styling */
.pec-tab-content.active.pec-department-section {
  scroll-margin-top: 100px; /* Offset for header */
}

.pec-department-section {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e8e8e8;
  scroll-margin-top: 100px; /* Offset for header */
}

/* Alternate sections with card styling - only apply to active tab content */
.pec-tab-content.active.pec-department-section:nth-child(even),
.pec-department-section:nth-child(even) {
  background: rgba(190, 0, 0, 0.0625); /* 25% more opacity than nav hover (0.05 * 1.25 = 0.0625) */
  border: 1px solid rgba(190, 0, 0, 0.15); /* Light red border */
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 40px 32px;
  margin-bottom: 60px;
  border-bottom: 1px solid rgba(190, 0, 0, 0.15); /* Override default border-bottom */
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.pec-department-section:nth-child(even):hover {
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.pec-department-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* If last section is even, remove bottom margin */
.pec-department-section:nth-child(even):last-child {
  margin-bottom: 0;
}

/* Section title font size - decreased by 4px */
.pec-department-section .pec-section-title {
  font-size: clamp(1.5rem, 4vw, 2rem); /* Decreased by 4px from default (1.75rem to 1.5rem, 2.25rem to 2rem) */
}

.pec-department-section-content {
  margin-top: 24px;
  line-height: 1.8;
  color: #333;
}

.pec-department-section-content p {
  margin-bottom: 16px;
  font-size: 1rem;
}

.pec-department-section-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pec-black, #1a1a1a);
  margin-top: 32px;
  margin-bottom: 16px;
}

.pec-department-section-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--pec-black, #1a1a1a);
  margin-top: 24px;
  margin-bottom: 12px;
}

.pec-department-section-content ul,
.pec-department-section-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.pec-department-section-content ul li,
.pec-department-section-content ol li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ========== DEPARTMENT BUTTON STYLING ========== */
.pec-department-button-wrap {
  margin-top: 16px;
  margin-bottom: 16px;
}

.pec-department-button-wrap:first-child {
  margin-top: 0;
}

.pec-department-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--pec-red, #be0000);
  color: #fff;
  text-decoration: none;
  border-radius: var(--pec-radius, 16px);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--pec-red, #be0000);
  box-shadow: 0 2px 8px rgba(190, 0, 0, 0.2);
}

.pec-department-btn i {
  font-size: 1.125rem;
}

.pec-department-btn:hover {
  background: var(--pec-black, #1a1a1a);
  border-color: var(--pec-black, #1a1a1a);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.pec-department-btn:active {
  transform: translateY(0);
}

/* ========== SYLLABUS BUTTONS (INLINE-BLOCK - DYNAMIC) ========== */
.pec-syllabus-info {
  margin-bottom: 24px;
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

.pec-syllabus-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  align-items: stretch;
}

.pec-syllabus-buttons .pec-department-btn {
  flex: 0 1 auto; /* Don't grow, can shrink, auto basis - maintains natural width */
  min-width: 180px;
  max-width: 100%; /* Prevent buttons from exceeding container */
  justify-content: center;
  text-align: center;
  white-space: nowrap; /* Prevent text wrapping inside button */
}

/* Minutes of Meeting buttons: show 2-3 per row */
.pec-minutes-buttons .pec-department-btn {
  flex: 0 1 calc(33.333% - 11px);
  min-width: 180px;
  max-width: 100%;
}

.pec-mou-docs-title {
  margin-top: 2rem;
}

/* ========== FEEDBACK PAGE (pec-v5/feedback.php) ========== */
.pec-feedback-block .pec-syllabus-buttons {
  margin-top: 1.25rem;
}

.pec-feedback-divider {
  border: 0;
  border-top: 1px solid #dddddd;
  margin: 2rem 0;
}

.pec-feedback-action-btn {
  background: var(--pec-black, #1a1a1a);
  border-color: var(--pec-black, #1a1a1a);
}

.pec-feedback-action-btn:hover {
  background: #000;
  border-color: #000;
}

.pec-feedback-modal-content {
  border-radius: 12px;
}

.pec-feedback-modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

.pec-feedback-guest-card {
  margin-top: 0.5rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(190, 0, 0, 0.12);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.pec-feedback-guest-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pec-black, #1a1a1a);
  margin: 0 0 1rem 0;
}

.pec-feedback-guest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pec-feedback-guest-grid .pec-department-btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.pec-feedback-guest-btn {
  background: transparent;
  color: var(--pec-red, #be0000);
  border-color: var(--pec-red, #be0000);
  box-shadow: none;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
}

.pec-feedback-guest-btn:hover {
  background: var(--pec-red, #be0000);
  color: #fff;
  border-color: var(--pec-red, #be0000);
}

/* Responsive: 2 buttons per row on tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
  .pec-syllabus-buttons .pec-department-btn {
    flex: 0 1 calc(50% - 8px); /* 2 buttons per row with gap */
    min-width: 160px;
  }

  .pec-minutes-buttons .pec-department-btn {
    flex: 0 1 calc(50% - 8px);
  }

  .pec-feedback-guest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Responsive: Stack on mobile */
@media (max-width: 767.98px) {
  .pec-syllabus-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .pec-syllabus-buttons .pec-department-btn {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }

  .pec-feedback-guest-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== HOD PROFILE STYLING ========== */
.pec-hod-profile {
  margin-top: 24px;
}

.pec-hod-image-wrap {
  margin-bottom: 24px;
  text-align: center;
}

.pec-hod-image {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.pec-hod-basic-info {
  background: rgba(190, 0, 0, 0.05);
  border: 1px solid rgba(190, 0, 0, 0.15);
  border-radius: 12px;
  padding: 20px;
}

.pec-hod-info-item {
  margin-bottom: 16px;
}

.pec-hod-info-item:last-child {
  margin-bottom: 0;
}

.pec-hod-info-item strong {
  display: block;
  color: var(--pec-red, #be0000);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.pec-hod-info-item p {
  margin: 0;
  color: var(--pec-black, #1a1a1a);
  font-size: 1rem;
  font-weight: 500;
}

.pec-hod-details h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pec-black, #1a1a1a);
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(190, 0, 0, 0.2);
}

.pec-hod-details h3:first-child {
  margin-top: 0;
}

.pec-hod-details h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--pec-black, #1a1a1a);
  margin-top: 20px;
  margin-bottom: 12px;
}

.pec-hod-details ul {
  margin: 12px 0 24px 0;
  padding-left: 24px;
}

.pec-hod-details ul li {
  margin-bottom: 10px;
  line-height: 1.7;
  color: #333;
}

.pec-hod-details p {
  margin-bottom: 24px;
  line-height: 1.8;
  color: #333;
}

/* Responsive adjustments for HOD profile */
@media (max-width: 767.98px) {
  .pec-hod-image {
    max-width: 240px;
  }

  .pec-hod-basic-info {
    margin-top: 20px;
  }

  .pec-hod-details h3 {
    font-size: 1.25rem;
    margin-top: 24px;
  }
}

/* ========== CERTIFICATION YEAR HEADINGS ========== */
.pec-certification-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pec-red, #be0000);
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(190, 0, 0, 0.2);
}

.pec-certification-year:first-of-type {
  margin-top: 32px;
}

.pec-department-section-content > h3:first-child {
  margin-top: 0;
}

/* ========== FACILITIES IMAGES STYLING ========== */
.pec-facilities-images {
  margin-top: 32px;
}

.pec-facility-image-item {
  text-align: center;
  margin-bottom: 24px;
}

.pec-facility-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
}

.pec-facility-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.pec-facility-image-name {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--pec-black, #1a1a1a);
  text-align: center;
  letter-spacing: 0.5px;
}

@media (max-width: 767.98px) {
  .pec-facility-image-item {
    margin-bottom: 32px;
  }

  .pec-facility-image-name {
    font-size: 0.9375rem;
  }
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet and below: Sidebar above content */
@media (max-width: 991.98px) {
  .pec-department-nav {
    margin-bottom: 40px;
  }

  .pec-department-section {
    scroll-margin-top: 20px;
  }

  .pec-department-content {
    padding: 40px 0;
  }
}

/* Mobile: Adjust padding */
@media (max-width: 767.98px) {
  .pec-department-nav {
    border-radius: 12px;
  }

  .pec-department-nav-heading {
    padding: 20px 20px 12px 20px;
    font-size: 1rem;
    border-radius: 12px 12px 0 0;
  }

  .pec-department-nav-link {
    padding: 10px 20px;
    font-size: 0.875rem;
    gap: 8px;
  }

  .pec-department-nav-link i {
    font-size: 0.6875rem;
    width: 14px;
  }

  .pec-department-nav-link:hover {
    padding-left: 24px;
  }

  .pec-tab-content {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .pec-tab-content.active {
    margin-bottom: 40px;
    padding-bottom: 30px;
  }

  .pec-department-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
  }

  .pec-tab-content.active.pec-department-section:nth-child(even),
  .pec-department-section:nth-child(even) {
    padding: 30px 20px;
    border-radius: 12px;
    margin-bottom: 40px;
  }

  .pec-department-section-content {
    margin-top: 20px;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Tab navigation accessibility */
.pec-department-nav-link[aria-selected="true"] {
  color: var(--pec-red, #be0000);
  background: rgba(190, 0, 0, 0.08);
  border-left-color: var(--pec-red, #be0000);
  font-weight: 600;
}

.pec-tab-content[aria-hidden="true"] {
  display: none !important;
}

.pec-tab-content[aria-hidden="false"] {
  display: block;
}

/* Mobile: Ensure tabs work smoothly on small screens */
@media (max-width: 991.98px) {
  .pec-tab-content-wrapper {
    margin-top: 20px;
  }

  .pec-tab-content.active {
    animation: fadeInMobile 0.3s ease-in forwards;
  }

  @keyframes fadeInMobile {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}

/* ========== Results + Exams contact cards (pec-v5 parity; Training & Placement Cell card) ========== */
.pec-results-lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 42rem;
}

.pec-results-notice {
  margin-top: 1.75rem;
  margin-bottom: 0;
  padding: 1.25rem 1.35rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--pec-black, #1a1a1a);
  background: rgba(190, 0, 0, 0.07);
  border-left: 4px solid var(--pec-red, #be0000);
  border-radius: 0 var(--pec-radius, 16px) var(--pec-radius, 16px) 0;
}

/* Exams — Contacts tab (cards + icons); also used by Training & Placement Cell */
.pec-exams-contacts-content .pec-exams-contacts-intro {
  margin: 0 0 1.5rem 0;
  color: var(--pec-black, #1a1a1a);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 48rem;
}

.pec-exams-contact-grid {
  margin-top: 0.25rem;
}

.pec-exams-contact-card {
  height: 100%;
  background: #fff;
  border-radius: var(--pec-radius, 16px);
  padding: 1.5rem 1.35rem;
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  text-align: center;
}

.pec-exams-contact-card:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
  border-color: rgba(190, 0, 0, 0.2);
}

.pec-exams-contact-card__icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem auto;
  background: rgba(190, 0, 0, 0.1);
  color: var(--pec-red, #be0000);
}

.pec-exams-contact-card__icon-wrap i {
  font-size: 1.75rem;
  line-height: 1;
}

.pec-exams-contact-card__title {
  margin: 0 0 0.65rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pec-black, #1a1a1a);
  line-height: 1.35;
}

.pec-exams-contact-card__body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--pec-black, #1a1a1a);
  opacity: 0.92;
}

.pec-exams-contact-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pec-exams-contact-card__list li + li {
  margin-top: 0.5rem;
}

.pec-exams-contact-card__link {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--pec-red, #be0000);
  text-decoration: none;
  word-break: break-word;
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
}

.pec-exams-contact-card__link:hover {
  color: var(--pec-black, #1a1a1a);
  text-decoration: underline;
}

.pec-exams-contact-card__text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--pec-black, #1a1a1a);
  opacity: 0.92;
}

.pec-exams-contact-card__map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pec-red, #be0000);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pec-exams-contact-card__map-link:hover {
  color: var(--pec-black, #1a1a1a);
}

.pec-exams-contact-card__map-link i {
  font-size: 1rem;
}

/* Contact Us page */
.pec-contact-page-section .pec-programs-table-title {
  margin-top: 0;
}

.pec-contact-page-section .pec-contact-page-institution .pec-programs-table-title {
  margin-top: 0;
}

.pec-contact-card-role {
  margin: -0.35rem 0 0.85rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pec-red, #be0000);
  line-height: 1.35;
}

.pec-contact-page-institution {
  margin-top: 2.75rem;
  padding: 1.75rem 1.5rem;
  background: rgba(190, 0, 0, 0.05);
  border: 1px solid rgba(190, 0, 0, 0.12);
  border-radius: var(--pec-radius, 16px);
}

.pec-contact-page-institution-list {
  list-style: none;
  margin: 1rem 0 0 0;
  padding: 0;
}

.pec-contact-page-institution-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.pec-contact-page-institution-list li:last-of-type {
  margin-bottom: 0;
}

.pec-contact-page-institution-icon {
  flex-shrink: 0;
  width: 1.75rem;
  text-align: center;
  color: var(--pec-red, #be0000);
  padding-top: 0.15rem;
}

.pec-contact-page-institution-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--pec-black, #1a1a1a);
}

.pec-contact-page-institution-text a {
  color: var(--pec-red, #be0000);
  font-weight: 600;
  text-decoration: none;
}

.pec-contact-page-institution-text a:hover {
  color: var(--pec-black, #1a1a1a);
  text-decoration: underline;
}

.pec-contact-page-society {
  margin: 1.5rem 0 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pec-black, #1a1a1a);
  opacity: 0.9;
}

/* Location page */
.pec-location-page-section .pec-programs-table-title {
  margin-top: 0;
}

.pec-location-map-title {
  margin-top: 2.5rem !important;
}

.pec-location-directions {
  list-style: none;
  margin: 0 0 0.5rem 0;
  padding: 0;
  max-width: 48rem;
}

.pec-location-directions li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.pec-location-directions li:last-child {
  border-bottom: none;
}

.pec-location-directions__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(190, 0, 0, 0.1);
  color: var(--pec-red, #be0000);
  font-size: 1.1rem;
}

.pec-location-directions__text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--pec-black, #1a1a1a);
  padding-top: 0.2rem;
}

.pec-location-map-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--pec-radius, 16px);
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(26, 26, 26, 0.08);
  background: var(--pec-grey, #f0f0f0);
  aspect-ratio: 16 / 10;
  max-height: 480px;
}

.pec-location-map-iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

.pec-location-map-actions {
  margin: 1.25rem 0 0 0;
  text-align: center;
}

@media (max-width: 575.98px) {
  .pec-location-map-wrap {
    aspect-ratio: 4 / 5;
    max-height: none;
  }
}

/* ========== Apply Now page ========== */
.pec-apply-section {
  padding-bottom: 4rem;
}

.pec-apply-section .pec-programs-table-title {
  margin-top: 0;
}

.pec-apply-intro {
  margin-bottom: 2rem;
  max-width: 48rem;
}

.pec-apply-intro__lead {
  margin: 0.75rem 0 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--pec-black, #1a1a1a);
  opacity: 0.9;
}

.pec-apply-required-mark {
  color: var(--pec-red, #be0000);
  font-weight: 700;
}

.pec-apply-form {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--pec-radius, 16px);
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
  padding: 2rem 2rem 2.25rem;
}

@media (max-width: 575.98px) {
  .pec-apply-form {
    padding: 1.35rem 1.15rem 1.5rem;
  }
}

.pec-apply-fieldset {
  display: flow-root;
  margin: 0 0 1.75rem 0;
  padding: 0 0 1.75rem 0;
  border: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}

.pec-apply-fieldset--last {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.pec-apply-legend {
  margin: 0 0 1.25rem 0;
  padding: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pec-black, #1a1a1a);
  border-bottom: 2px solid var(--pec-red, #be0000);
  line-height: 1.3;
  width: 100%;
}

.pec-apply-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pec-black, #1a1a1a);
}

.pec-apply-control {
  display: block;
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--pec-black, #1a1a1a);
  background-color: var(--pec-white, #fff);
  border: 1px solid rgba(26, 26, 26, 0.18);
  border-radius: calc(var(--pec-radius, 16px) * 0.5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pec-apply-control:hover {
  border-color: rgba(190, 0, 0, 0.35);
}

.pec-apply-control:focus {
  outline: none;
  border-color: var(--pec-red, #be0000);
  box-shadow: 0 0 0 3px rgba(190, 0, 0, 0.15);
}

.pec-apply-control::placeholder {
  color: rgba(26, 26, 26, 0.45);
}

.pec-apply-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.25rem;
}

.pec-apply-textarea {
  resize: vertical;
  min-height: 5rem;
}

.pec-apply-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--pec-black, #1a1a1a);
}

.pec-apply-check__input {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--pec-red, #be0000);
  cursor: pointer;
}

.pec-apply-check__text {
  flex: 1;
}

.pec-apply-actions {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.pec-apply-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--pec-white, #fff);
  background: var(--pec-red, #be0000);
  border: 2px solid var(--pec-red, #be0000);
  border-radius: var(--pec-radius, 16px);
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(190, 0, 0, 0.25);
}

.pec-apply-submit:hover {
  background: var(--pec-black, #1a1a1a);
  border-color: var(--pec-black, #1a1a1a);
  color: var(--pec-white, #fff);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.pec-apply-submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(190, 0, 0, 0.35);
}

.pec-apply-submit:active {
  transform: translateY(0);
}

.pec-apply-note {
  margin: 1.25rem 0 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--pec-black, #1a1a1a);
  opacity: 0.85;
  max-width: 40rem;
}

.pec-apply-note__link {
  color: var(--pec-red, #be0000);
  font-weight: 600;
  text-decoration: none;
}

.pec-apply-note__link:hover {
  text-decoration: underline;
  color: var(--pec-black, #1a1a1a);
}

.pec-apply-success {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 1.75rem;
  background: rgba(190, 0, 0, 0.06);
  border: 1px solid rgba(190, 0, 0, 0.15);
  border-radius: var(--pec-radius, 16px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.pec-apply-success__icon {
  font-size: 3rem;
  color: var(--pec-red, #be0000);
  line-height: 1;
  margin-bottom: 1rem;
}

.pec-apply-success__title {
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pec-black, #1a1a1a);
}

.pec-apply-success__text {
  margin: 0 0 1.5rem 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--pec-black, #1a1a1a);
  opacity: 0.92;
}

.pec-apply-success__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pec-red, #be0000);
  text-decoration: none;
}

.pec-apply-success__link:hover {
  color: var(--pec-black, #1a1a1a);
  text-decoration: underline;
}

/* ========== Content blocks (parity with pec-v5 PHP) — placement & related CMS pages ========== */
.pec-scholarships-section .pec-programs-table-title,
.pec-student-clubs-section .pec-programs-table-title,
.pec-cultural-events-section .pec-programs-table-title,
.pec-sports-events-section .pec-programs-table-title,
.pec-technical-festivals-section .pec-programs-table-title,
.pec-workshops-seminars-section .pec-programs-table-title,
.pec-placement-statistics-section .pec-programs-table-title,
.pec-internship-opportunities-section .pec-programs-table-title,
.pec-success-stories-section .pec-programs-table-title,
.pec-news-updates-section .pec-programs-table-title {
  margin-top: 0;
}

.pec-scholarships-lead,
.pec-student-clubs-lead,
.pec-cultural-events-lead,
.pec-sports-events-lead,
.pec-technical-festivals-lead,
.pec-workshops-seminars-lead,
.pec-placement-statistics-lead,
.pec-internship-opportunities-lead,
.pec-success-stories-lead,
.pec-news-updates-lead {
  margin-bottom: 0;
  max-width: 48rem;
}

.pec-student-clubs-lead + .pec-student-clubs-lead,
.pec-cultural-events-lead + .pec-cultural-events-lead,
.pec-sports-events-lead + .pec-sports-events-lead,
.pec-technical-festivals-lead + .pec-technical-festivals-lead,
.pec-workshops-seminars-lead + .pec-workshops-seminars-lead {
  margin-top: 1rem;
}

.pec-scholarships-update-notice,
.pec-student-clubs-update-notice,
.pec-cultural-events-update-notice,
.pec-sports-events-update-notice,
.pec-technical-festivals-update-notice,
.pec-workshops-seminars-update-notice,
.pec-placement-statistics-update-notice,
.pec-internship-opportunities-update-notice,
.pec-success-stories-update-notice {
  margin-top: 2.5rem;
  margin-bottom: 0;
  padding: 1.25rem 1.35rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--pec-black, #1a1a1a);
  background: rgba(190, 0, 0, 0.07);
  border-left: 4px solid var(--pec-red, #be0000);
  border-radius: 0 var(--pec-radius, 16px) var(--pec-radius, 16px) 0;
  max-width: 48rem;
}

.pec-scholarships-update-notice strong,
.pec-student-clubs-update-notice strong,
.pec-cultural-events-update-notice strong,
.pec-sports-events-update-notice strong,
.pec-technical-festivals-update-notice strong,
.pec-workshops-seminars-update-notice strong,
.pec-placement-statistics-update-notice strong,
.pec-internship-opportunities-update-notice strong,
.pec-success-stories-update-notice strong {
  color: var(--pec-red, #be0000);
  font-weight: 700;
}

.pec-cultural-events-section .pec-cultural-events-lead,
.pec-cultural-events-section .pec-results-lead,
.pec-cultural-events-section .pec-cultural-events-update-notice,
.pec-sports-events-section .pec-sports-events-lead,
.pec-sports-events-section .pec-results-lead,
.pec-sports-events-section .pec-sports-events-update-notice,
.pec-technical-festivals-section .pec-technical-festivals-lead,
.pec-technical-festivals-section .pec-results-lead,
.pec-technical-festivals-section .pec-technical-festivals-update-notice,
.pec-workshops-seminars-section .pec-workshops-seminars-lead,
.pec-workshops-seminars-section .pec-results-lead,
.pec-workshops-seminars-section .pec-workshops-seminars-update-notice,
.pec-placement-statistics-section .pec-placement-statistics-lead,
.pec-placement-statistics-section .pec-results-lead,
.pec-placement-statistics-section .pec-placement-statistics-update-notice,
.pec-internship-opportunities-section .pec-internship-opportunities-lead,
.pec-internship-opportunities-section .pec-results-lead,
.pec-internship-opportunities-section .pec-internship-opportunities-update-notice,
.pec-success-stories-section .pec-success-stories-lead,
.pec-success-stories-section .pec-results-lead,
.pec-success-stories-section .pec-success-stories-update-notice,
.pec-news-updates-section .pec-news-updates-lead,
.pec-news-updates-section .pec-results-lead,
.pec-news-updates-section .pec-labs-text {
  max-width: none;
}

/* Cultural Awards gallery — intro copy + grid inside `pec-cultural-events-section` (see cultural-events.php) */
.pec-cultural-awards-gallery-shell .pec-cultural-awards-intro p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--pec-black, #1a1a1a);
  margin-bottom: 1rem;
  opacity: 0.9;
  max-width: 48rem;
}

.pec-cultural-awards-gallery-shell .pec-cultural-awards-intro p + p {
  margin-top: 1rem;
}

.pec-cultural-awards-gallery-shell .pec-cultural-awards-intro p:last-child {
  margin-bottom: 0;
}

.pec-cultural-awards-gallery-shell .pec-campus-gallery-grid {
  margin-top: 2rem;
}

/* Syllabus & Curriculum — PDF cards (pec-v5 parity; used by Placement Records year cards) */
.pec-syllabus-tab-placeholder {
  margin: 0;
  padding: 1.25rem 1.35rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--pec-black, #1a1a1a);
  background: rgba(190, 0, 0, 0.07);
  border-left: calc(4px * 0.7) solid var(--pec-red, #be0000);
  border-radius: 0 calc(var(--pec-radius, 16px) * 0.7) calc(var(--pec-radius, 16px) * 0.7) 0;
  max-width: 40rem;
}

.pec-syllabus-tab-cards {
  margin-top: 0.25rem;
}

.pec-syllabus-pdf-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: calc(1.25rem * 0.7);
  padding: calc(1.5rem * 0.7) calc(1.35rem * 0.7);
  background: #fff;
  border-radius: calc(var(--pec-radius, 16px) * 0.7);
  border: 1px solid rgba(26, 26, 26, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.pec-syllabus-pdf-card:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(calc(-2px * 0.7));
  border-color: rgba(190, 0, 0, 0.2);
}

.pec-syllabus-pdf-card__title {
  margin: 0;
  font-size: calc(1.125rem * 0.7);
  font-weight: 700;
  color: var(--pec-black, #1a1a1a);
  line-height: 1.35;
  padding-bottom: calc(0.75rem * 0.7);
  border-bottom: calc(2px * 0.7) solid var(--pec-red, #be0000);
}

.pec-syllabus-pdf-card .pec-department-btn.pec-syllabus-pdf-card__btn {
  padding: calc(14px * 0.7) calc(28px * 0.7);
  font-size: calc(1rem * 0.7);
  gap: calc(10px * 0.7);
  border-width: calc(2px * 0.7);
  border-radius: calc(var(--pec-radius, 16px) * 0.7);
  box-shadow: 0 calc(2px * 0.7) calc(8px * 0.7) rgba(190, 0, 0, 0.2);
}

.pec-syllabus-pdf-card .pec-department-btn.pec-syllabus-pdf-card__btn:hover {
  transform: translateY(calc(-2px * 0.7));
  box-shadow: 0 calc(4px * 0.7) calc(12px * 0.7) rgba(0, 0, 0, 0.2);
}

.pec-syllabus-pdf-card .pec-department-btn.pec-syllabus-pdf-card__btn i {
  font-size: calc(1.125rem * 0.7);
}

.pec-syllabus-pdf-card__btn {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 575.98px) {
  .pec-syllabus-pdf-card__btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========== Placement Records page ========== */
.pec-placement-records-section {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, #fff 0%, rgba(190, 0, 0, 0.04) 45%, #fff 100%);
}

.pec-placement-records-section__heading {
  margin-bottom: 1rem;
}

.pec-placement-records-section__heading .pec-section-title {
  position: relative;
  padding-bottom: 0.65rem;
}

.pec-placement-records-section__heading .pec-section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 4rem;
  height: 3px;
  border-radius: 2px;
  background: var(--pec-red, #be0000);
}

.pec-placement-records-intro {
  max-width: 40rem;
  margin: 0 0 1.75rem 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--pec-black, #1a1a1a);
  opacity: 0.88;
}

.pec-placement-records-grid {
  margin-top: 0.25rem;
}

.pec-placement-records-card {
  height: 100%;
  border-top: 3px solid var(--pec-red, #be0000);
}

.pec-placement-records-year {
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.pec-placement-records-card .pec-syllabus-pdf-card__title {
  min-height: 2.75rem;
}

.pec-placement-records-btn {
  width: 100%;
  justify-content: center;
}

@media (min-width: 768px) {
  .pec-placement-records-btn {
    width: auto;
    align-self: flex-start;
  }
}

/* ========== Training & Placement Cell page ========== */
.pec-placement-tpo-section {
  padding-top: 50px;
}

.pec-placement-tpo-section__heading {
  margin-bottom: 1.5rem;
}

.pec-placement-tpo-card-wrap {
  margin-bottom: 2rem;
}

.pec-placement-tpo-card {
  text-align: center;
}

.pec-placement-tpo-card .pec-exams-contact-card__list {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pec-placement-prose .pec-labs-subheading {
  margin-top: 1.75rem;
}

.pec-placement-prose .pec-labs-subheading:first-of-type {
  margin-top: 0;
}

.pec-placement-function-list {
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
  max-width: 48rem;
}

.pec-placement-function-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.65rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--pec-black, #1a1a1a);
  opacity: 0.92;
}

.pec-placement-function-list li:last-child {
  margin-bottom: 0;
}

.pec-placement-function-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pec-red, #be0000);
}

.pec-placement-gallery {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
}

/* ========== Placement Procedure & Career Guidance pages ========== */
.pec-placement-procedure-section,
.pec-career-guidance-section {
  padding-top: 60px;
  padding-bottom: 70px;
  background: #fff;
}

.pec-placement-procedure-section .pec-section-heading,
.pec-career-guidance-section .pec-section-heading {
  margin-bottom: 2rem;
}

.pec-placement-procedure-section .pec-section-label,
.pec-career-guidance-section .pec-section-label {
  margin-bottom: 0.5rem;
}

.pec-placement-procedure-section .pec-section-title,
.pec-career-guidance-section .pec-section-title {
  margin: 0 0 0.5rem 0;
}

.pec-placement-procedure-content,
.pec-career-guidance-content {
  max-width: none;
}

.pec-placement-procedure-text,
.pec-career-guidance-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--pec-black, #1a1a1a);
  margin: 0 0 1.25rem 0;
  opacity: 0.92;
}

.pec-placement-procedure-text:last-child,
.pec-career-guidance-text:last-child {
  margin-bottom: 0;
}

/* ========== Careers page (dynamic cards from Admin → Careers) ========== */
.pec-careers-section {
  padding: 50px 0 80px;
  background: #fff;
}

.pec-careers-section__heading {
  margin-bottom: 1.75rem;
}

.pec-careers-empty {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--pec-black, #1a1a1a);
  opacity: 0.75;
  max-width: 40rem;
}

.pec-careers-grid {
  margin-top: 0.25rem;
}

.pec-career-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: var(--pec-radius, 16px);
  border: 1px solid rgba(26, 26, 26, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.pec-career-card:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  border-color: rgba(190, 0, 0, 0.15);
}

.pec-career-card__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: rgba(190, 0, 0, 0.06);
}

.pec-career-card__icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  background: rgba(190, 0, 0, 0.08);
  color: var(--pec-red, #be0000);
  font-size: 2.5rem;
}

.pec-career-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

.pec-career-card__title {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pec-black, #1a1a1a);
  line-height: 1.35;
}

.pec-career-card__role {
  margin: 0 0 0.75rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pec-red, #be0000);
  line-height: 1.4;
}

.pec-career-card__summary {
  margin: 0 0 0.75rem 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--pec-black, #1a1a1a);
  opacity: 0.88;
}

.pec-career-card__job-desc {
  margin: 0 0 1rem 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--pec-black, #1a1a1a);
  opacity: 0.92;
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1;
  min-height: 0;
}

.pec-career-card__btn {
  margin-top: auto;
}
