/* =========================================================
   PROGRAMMES OFFERED PAGE STYLES
   Using IGCE Brand Colors
   ========================================================= */

/* Brand Colors */
:root {
  --brand-primary: #1a5f9e; /* Main blue from IGCE website */
  --brand-secondary: #2c3e50; /* Dark blue */
  --brand-accent: #3498db; /* Light blue */
  --brand-light: #ecf0f1; /* Light gray */
  --brand-dark: #2c3e50; /* Dark gray */
  --brand-success: #27ae60; /* Green */
  --brand-warning: #f39c12; /* Orange */
  --brand-danger: #e74c3c; /* Red */

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* =========================================================
   PAGE HEADER
   ========================================================= */
.page-header {
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-secondary) 100%
  );
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="white" opacity="0.05"><path d="M0,0 L100,0 L100,100 Q50,80 0,100 Z"/></svg>');
  background-size: cover;
}

.page-header h1 {
  font-weight: 700;
  font-size: 2.2rem;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-header .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 800px;
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb-item a:hover {
  color: white !important;
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: white !important;
  font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Stats Box */
.stats-box {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  color: white;
}

.stats-box i {
  font-size: 2rem;
  opacity: 0.9;
}

.stats-box h4 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: white;
}

.stats-box p {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.9;
}

/* =========================================================
   CONTROLS SECTION
   ========================================================= */
.controls-section {
  border-bottom: 1px solid #dee2e6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-container {
  position: relative;
}

.search-container i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-primary);
  font-size: 1.1rem;
}

.search-container input {
  padding-left: 2.5rem;
  border: 2px solid #dee2e6;
  border-radius: var(--radius-sm);
  transition: all 0.3s;
  height: 45px;
}

.search-container input:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.filter-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.filter-label {
  color: var(--brand-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

.filter-container select {
  border: 2px solid #dee2e6;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  color: var(--brand-secondary);
  transition: all 0.3s;
  width: auto;
  min-width: 180px;
}

.filter-container select:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* =========================================================
   PROGRAMMES GRID
   ========================================================= */
.section-title {
  color: var(--brand-secondary);
  font-weight: 600;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title i {
  color: var(--brand-primary);
}

.programme-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
}

.programme-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-accent);
}

.programme-card-header {
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-secondary) 100%
  );
  padding: 1.5rem;
  position: relative;
  min-height: 100px;
}

.programme-card-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="white" opacity="0.05"><circle cx="50" cy="50" r="40"/></svg>');
}

.programme-serial {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 0.9rem;
}

.programme-type {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.programme-name {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.programme-card-body {
  padding: 1.5rem;
}

.programme-details {
  margin-bottom: 1.5rem;
}

.programme-detail-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: #555;
  font-size: 0.9rem;
}

.programme-detail-item i {
  color: var(--brand-primary);
  margin-right: 0.75rem;
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.intake-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: #e8f4fd;
  border-radius: var(--radius-sm);
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.intake-badge i {
  color: var(--brand-primary);
}

.duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: #e8f6f3;
  border-radius: var(--radius-sm);
  color: var(--brand-success);
  font-weight: 600;
  font-size: 0.9rem;
}

.duration-badge i {
  color: var(--brand-success);
}

.programme-actions {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

.view-department-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  background: var(--brand-primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s;
}

.view-department-btn:hover {
  background: var(--brand-secondary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Programme Category Badges */
.programme-category {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.category-engineering {
  background: var(--brand-primary);
  color: white;
}

.category-technology {
  background: var(--brand-accent);
  color: white;
}

.category-management {
  background: var(--brand-warning);
  color: white;
}

/* =========================================================
   PROGRAMMES INFO
   ========================================================= */
.programmes-info {
  padding: 1.25rem;
  background: #f8f9fa;
  border-radius: var(--radius-md);
  border: 1px solid #e9ecef;
}

.programmes-info .badge {
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
}

#printList {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  font-weight: 500;
}

#printList:hover {
  background: var(--brand-primary);
  color: white;
}

/* =========================================================
   ADDITIONAL INFO
   ========================================================= */
.additional-info {
  padding-top: 2rem;
  border-top: 2px solid #e9ecef;
}

.info-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: 100%;
  transition: all 0.3s ease;
  text-align: center;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--brand-accent);
}

.info-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-accent) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  color: white;
}

.info-card h5 {
  color: var(--brand-secondary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.info-card p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 1.75rem;
  }

  .page-header .lead {
    font-size: 1rem;
  }

  .stats-box {
    padding: 0.75rem 1rem;
  }

  .stats-box h4 {
    font-size: 1.5rem;
  }

  .controls-section .row {
    flex-direction: column;
    gap: 1rem;
  }

  .filter-container {
    justify-content: flex-start;
  }

  .search-container input,
  .filter-container select {
    width: 100%;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .programme-card-header {
    padding: 1.25rem;
    min-height: 90px;
  }

  .programme-name {
    font-size: 1rem;
  }

  .programme-detail-item {
    font-size: 0.85rem;
  }

  .programmes-info .row {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .programmes-info .col-md-6 {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .page-header {
    padding: 2rem 0;
  }

  .stats-box {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }

  .programme-card {
    margin-bottom: 1rem;
  }

  .programme-category {
    font-size: 0.7rem;
    padding: 0.3rem 0.75rem;
  }
}

/* =========================================================
   PRINT STYLES
   ========================================================= */
@media print {
  .page-header,
  .controls-section,
  .programmes-info,
  .additional-info,
  .view-department-btn {
    display: none !important;
  }

  .programme-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
    margin-bottom: 1rem !important;
  }

  .programme-card-header {
    background: #f8f9fa !important;
    color: #000 !important;
  }

  .programme-name {
    color: #000 !important;
  }

  .programme-type {
    background: #ddd !important;
    color: #000 !important;
    border: 1px solid #ccc !important;
  }

  .programme-serial {
    background: #ddd !important;
    color: #000 !important;
    border: 1px solid #ccc !important;
  }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}
