/* ------------------------------ General Layout ------------------------------ */

body {
  background-color: #fefefe;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  text-align: center;
  margin: 0 auto;
}

/* ------------------------------ Header Banner ------------------------------ */

.top-banner {
  display: flex;
  align-items: center;
  background-color: #500000;
  color: white;
  padding: 10px 20px;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.tam-logo {
  max-height: 60px;
  width: auto;
}

.banner-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.banner-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
}

.banner-subtitle {
  font-size: 16px;
  margin: 0;
}

/* ------------------------------ Hero Image ------------------------------ */

.campus-image-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.campus-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* ------------------------------ About Section ------------------------------ */

.about-section {
  background-color: #ffffff;
  padding: 20px;
  margin: -60px auto 40px auto;
  width: 85%;
  max-width: 900px;
  border-radius: 8px;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.about-section h2 {
  color: #500000;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.about-section p {
  font-size: 16px;
  color: #333333;
  line-height: 1.6;
}

.maroon-divider {
  width: 60px;
  height: 6px;
  background-color: #500000;
  margin-bottom: 20px;
}

/* ------------------------------ Section Divider ------------------------------ */

.section-divider-with-text {
  text-align: center;
  border-top: 1px solid #ddd;
  margin: 40px auto 30px auto;
  position: relative;
  width: 90%;
}

.section-divider-with-text span {
  position: relative;
  top: -14px;
  background: #fff;
  padding: 0 15px;
  font-size: 20px;
  font-weight: bold;
  color: #500000;
}

.page-title {
  color: #500000;
}

.subtitle {
  color: #7b0000;
}

/* ------------------------------ Dashboard & Stats ------------------------------ */

.statistics-section {
  width: 90%;
  max-width: 1000px;
  margin: 40px auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.statistics-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.stat-box {
  background-color: #f1f3f5;
  padding: 20px;
  border-left: 5px solid #500000;
  border-radius: 8px;
  text-align: center;
  width: 220px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-label {
  font-size: 16px;
  color: #555;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: bold;
  color: #222;
}

/* ------------------------------ Tables ------------------------------ */

.course-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.course-table thead {
  background-color: #500000;
  color: white;
}

.course-table th, .course-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.course-table tbody tr:hover {
  background-color: #f8f8f8;
}

.course-table thead a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.course-table thead a:hover {
  text-decoration: underline;
}

/* ------------------------------ Buttons ------------------------------ */

.button-container,
.button-group,
.action-button-box {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease-in-out;
}

.btn-maroon {
  background-color: #500000;
  color: white;
}

.btn-maroon:hover {
  background-color: #3b0000;
  transform: scale(1.03);
  opacity: 0.95;
}

.btn-light-gray {
  background-color: #eceff1;
  color: #37474f;
}

.btn-light-gray:hover {
  background-color: #ddd;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 4px;
}

/* ------------------------------ Forms ------------------------------ */

.form-container,
.course-form,
.course-info-box,
.detail-container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin: 30px auto;
  max-width: 600px;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  margin-bottom: 10px;
}

.form-label {
  font-weight: bold;
  margin-bottom: 5px
}

.form-control {
  font-size: 15px;
}

.form-control:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.form-actions {
  text-align: center;
  margin-top: 10px;
}


/* ------------------------------ Detail Rows ------------------------------ */

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

.detail-label {
  font-weight: bold;
  color: #37474f;
}

.detail-value {
  color: #333;
}

/* ------------------------------ Features ------------------------------ */

.feature-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 20px 30px 60px 30px;
}

.feature-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  width: 280px;
  text-align: center;
  padding: 20px;
}

.feature-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.feature-card h3 {
  font-size: 20px;
  color: #500000;
  margin-top: 15px;
  margin-bottom: 10px;
}

.feature-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-links li {
  margin: 8px 0;
}

.feature-links a {
  text-decoration: none;
  color: #1565c0;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

.feature-links a:hover {
  color: #003366;
  text-decoration: underline;
}

.simple-link-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.simple-link {
  color: #005b75;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
}

.simple-link:hover {
  text-decoration: underline;
}

.user-edit-link {
  margin-top: 2rem;
  text-align: center;
}

.user-edit-link a {
  color: #005b75;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 5rem;
  text-align: center;
}

.user-edit-link a:hover {
  text-decoration: underline;
}

.edit-icon {
  width: 20px;
  height: 20px;
}

/* ------------------------------ Error Box ------------------------------ */

.error-box {
  background-color: #ffe5e5;
  border: 1px solid #cc0000;
  color: #cc0000;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}
