/* UI Components & Card Styles */
/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(rgba(0, 34, 68, 0.85), rgba(0, 51, 102, 0.9)), url('../images/content-2.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: var(--spacing-3xl) 0;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #e2e8f0;
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
}

.btn-group {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-light);
  color: #ffffff;
}

.btn-primary:hover {
  background: #004488;
  color: #ffffff;
  text-decoration: none;
}

.btn-accent {
  background: var(--accent);
  color: #000000;
}

.btn-accent:hover {
  background: #c29d2b;
  color: #000000;
  text-decoration: none;
}

.btn-outline {
  border: 2px solid #ffffff;
  color: #ffffff;
}

.btn-outline:hover {
  background: #ffffff;
  color: var(--primary-dark);
  text-decoration: none;
}

/* Notice Ticker Bar */
.ticker-bar {
  background: var(--accent-light);
  border-bottom: 2px solid var(--accent);
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
}

.ticker-label {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  white-space: nowrap;
  margin-right: var(--spacing-md);
}

.ticker-content {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

/* Standard Card Grids (aligned with global layout) */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
}

/* Standard Card */
.card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-xl);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.card-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

.card-title {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: var(--spacing-sm);
}

/* Faculty Card */
.faculty-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.faculty-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.faculty-img-wrap {
  width: 100%;
  height: 220px;
  background: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.faculty-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faculty-info {
  padding: var(--spacing-md);
  flex: 1;
}

.faculty-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.faculty-designation {
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.faculty-qualification {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Document & Table Styles */
.table-responsive {
  overflow-x: auto;
  margin-bottom: var(--spacing-xl);
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.styled-table th, .styled-table td {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.styled-table th {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
}

.styled-table tr:hover {
  background: var(--bg-alt);
}

.doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-subtle);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--primary-light);
}

.doc-btn:hover {
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  text-align: center;
}

.stat-item {
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 500;
}

/* Gallery Filter Bar & Grid */
.gallery-filter-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.gallery-filter-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-filter-btn:hover, .gallery-filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.gallery-card-thumb {
  position: relative;
  width: 100%;
  height: 220px;
  background: #0f172a;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
  display: block;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 34, 68, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}

.gallery-zoom-icon {
  background: #ffffff;
  color: var(--primary-dark);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transform: scale(0.85);
  transition: transform 0.2s ease;
}

.gallery-card:hover .gallery-zoom-icon {
  transform: scale(1);
}

.gallery-caption {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--primary-dark);
  font-weight: 600;
  line-height: 1.4;
  background: #ffffff;
  flex: 1;
  border-top: 1px solid var(--border-light);
}

.gallery-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lightboxZoom 0.25s ease-out;
}

@keyframes lightboxZoom {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-img {
  max-width: 85vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  background: #000;
}

.lightbox-caption {
  color: #f8fafc;
  margin-top: 0.85rem;
  font-size: 1.05rem;
  text-align: center;
  font-weight: 600;
  max-width: 800px;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  font-size: 1.8rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: #ffffff;
  color: #000000;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  user-select: none;
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Footer */
.main-footer {
  background: var(--primary-dark);
  color: #cbd5e1;
  padding-top: var(--spacing-3xl);
  margin-top: auto;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--accent);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 0.3rem;
}

.footer-bottom {
  background: #001830;
  padding: var(--spacing-md) 0;
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Survey Form & Feedback Analysis Styles
   ========================================================================== */
.survey-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-xl);
}

.survey-header {
  border-bottom: 2px solid var(--border-light);
  padding-bottom: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.survey-header h3 {
  color: var(--primary-dark);
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #f8fafc;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.matrix-table-wrapper {
  overflow-x: auto;
  margin: var(--spacing-lg) 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.matrix-table th {
  background: var(--primary-dark);
  color: #ffffff;
  padding: 0.75rem 0.85rem;
  text-align: center;
  font-weight: 600;
}

.matrix-table th.question-col {
  text-align: left;
  width: 50%;
}

.matrix-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.matrix-table td.rating-cell {
  text-align: center;
}

.matrix-table tr:nth-child(even) {
  background: #f8fafc;
}

.matrix-table tr:hover {
  background: #f1f5f9;
}

.custom-radio {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* Survey Analysis Bar Charts */
.stat-bar-container {
  margin-bottom: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.stat-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.stat-bar-question {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-dark);
  flex: 1;
}

.stat-bar-score {
  font-size: 0.88rem;
  font-weight: 700;
  color: #15803d;
  white-space: nowrap;
}

.progress-stacked {
  height: 20px;
  display: flex;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.progress-bar-agree {
  background: linear-gradient(90deg, #22c55e, #16a34a);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-bar-notsure {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-bar-disagree {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-bar-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.35rem;
}
.dot-agree { background: #16a34a; }
.dot-notsure { background: #d97706; }
.dot-disagree { background: #dc2626; }

/* Filter Tabs */
.filter-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}
