/* Root shim stylesheet - imports the main styles in assets/ for backward compatibility
   This keeps all pages referencing a single `style.css` in project root as requested.
*/
@import url("assets/styles.css");

/* You can add root-level overrides here if needed later. */

/* MV (Vision & Mission) page specific styles added per user request (no inline CSS) */
.mv-hero {
  padding: 3rem 0;
  background: linear-gradient(
    135deg,
    rgba(14, 24, 68, 0.95) 0%,
    rgba(10, 30, 80, 0.95) 100%
  );
  color: #fff;
  margin-top: 0;
}
.mv-hero .lead {
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.5rem;
}
.mv-section {
  padding: 2.5rem 0;
  background-color: var(--white);
}
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.mv-links ul {
  list-style: none;
  padding-left: 0;
}
.mv-links ul li {
  margin-bottom: 0.6rem;
}
.mv-links a {
  color: var(--primary);
}
.mv-contact p {
  color: var(--text-light);
  margin: 0.25rem 0;
}
.mv-map {
  height: 220px;
  background-color: rgba(14, 23, 68, 0.05);
  border: 1px dashed rgba(14, 23, 68, 0.08);
  border-radius: 0.5rem;
}

@media (max-width: 768px) {
  .mv-grid {
    grid-template-columns: 1fr;
  }
  .mv-hero h1 {
    font-size: 1.6rem;
  }
}

/* Founder page specific styles (kept in root style.css as requested) */
.founder-hero {
  padding: 3rem 0;
  background: linear-gradient(
    135deg,
    rgba(14, 24, 68, 0.95) 0%,
    rgba(10, 30, 80, 0.95) 100%
  );
  color: #fff;
  margin-top: 0;
}
.founder-hero .lead {
  /* Override: subtitle/description white */
  color: #ffffff;
  margin-top: 0.5rem;
}
.founder-hero h1 {
  /* Override: heading color as requested */
  color: #fb0c02;
}
.founder-section {
  padding: 2.5rem 0;
  background-color: var(--white);
}
/* Principal page icon styling (user icon instead of photo) */
.principal-photo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.principal-photo .user-icon {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3rem;
  box-shadow: var(--shadow-md);
}
@media (max-width: 480px) {
  .principal-photo .user-icon {
    width: 110px;
    height: 110px;
    font-size: 2.2rem;
  }
}
.founder-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}
.founder-photo img {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
}
.founder-content h2 {
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.founder-title {
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.founder-message p {
  color: var(--text-light);
  margin-bottom: 0.9rem;
  line-height: 1.8;
}
.founder-sign {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--primary);
}
.founder-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.founder-extra h3 {
  color: var(--primary);
}
.founder-extra ul {
  list-style: none;
  padding-left: 0;
}
.founder-extra ul li {
  margin-bottom: 0.6rem;
}

@media (max-width: 768px) {
  .founder-grid {
    grid-template-columns: 1fr;
  }
  .founder-photo {
    order: 0;
  }
  .founder-content {
    order: 1;
  }
}

/* ==================== COMMON PAGE HEADER + CONTENT (Reusable) ==================== */
/* Page Header (like univ.php) */
.page-hero {
  padding: 3rem 0;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-hero .container {
  max-width: 900px;
}

.page-hero__title {
  /* Updated as per request: heading color #fb0c02 */
  color: #fb0c02;
  margin: 0;
  font-size: 2.2rem;
}

.page-hero__subtitle {
  /* Updated as per request: description/subtitle white */
  color: #ffffff;
  margin: 0.5rem 0 0 0;
  font-size: 1.1rem;
}

/* Variants */
.page-hero--gradient-navy {
  background: linear-gradient(135deg, #0e1844 0%, #1a2d6b 100%);
}

.page-hero--dark,
.page-hero.page-hero--gradient-navy {
  color: #fff;
}

.page-hero--dark .page-hero__title,
.page-hero--gradient-navy .page-hero__title {
  /* Keep requested heading color even on dark backgrounds */
  color: #fb0c02;
}
.page-hero--dark .page-hero__subtitle,
.page-hero--gradient-navy .page-hero__subtitle {
  color: #ffffff;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 2rem 0;
  }
  .page-hero__title {
    font-size: 1.8rem;
  }
  .page-hero__subtitle {
    font-size: 1rem;
  }
}

/* Content Sections */
.section {
  padding: 4rem 0;
}
.section--white {
  background-color: var(--white);
}
.section--alt {
  background-color: rgba(245, 230, 211, 0.3);
}
.section--gradient-navy {
  background: linear-gradient(135deg, #0e1844 0%, #1a2d6b 100%);
  color: #fff;
}
.text-center {
  text-align: center;
}

.section-title {
  color: var(--primary);
  margin-bottom: 1.5rem;
  margin-top: 1rem;
  font-size: 2rem;
}
.section-subtitle {
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

/* Add top margin to consecutive section-headers for better spacing */
.section-header + .section-header {
  margin-top: 3rem;
}

/* Two column grid like in univ.php */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.two-col.reverse {
  direction: rtl;
}
.two-col.reverse > * {
  direction: ltr;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Utilities used across pages */
.img-shadow-rounded {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
}
.list-spaced {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--text-light);
  line-height: 1.8;
}
.card-soft {
  background: rgba(245, 230, 211, 0.3);
  padding: 1.5rem;
  border-radius: 0.5rem;
}
.img-center {
  display: block;
  margin: 0 auto 1rem;
  max-width: 400px;
  width: 100%;
  height: auto;
}

/* Manager page specific (uses same structure as founder) */
.manager-hero .page-hero__title {
  color: #fb0c02;
}
.manager-hero .page-hero__subtitle {
  color: #ffffff;
}
.manager-section .founder-content h2 {
  color: var(--primary);
}

/* College Staff page table styles */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.staff-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.95rem;
  border: 1px solid rgba(14, 23, 68, 0.1);
}

.staff-table th,
.staff-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(14, 23, 68, 0.1);
  border-left: 1px solid rgba(14, 23, 68, 0.1);
  border-right: 1px solid rgba(14, 23, 68, 0.1);
}

.staff-table td:first-child {
  font-weight: bold;
}

.staff-table th {
  background-color: rgba(14, 23, 68, 0.05);
  font-weight: 700;
  color: var(--primary);
  border-top: 1px solid rgba(14, 23, 68, 0.1);
}

.staff-table tbody tr:hover {
  background-color: rgba(245, 230, 211, 0.2);
}

@media (max-width: 768px) {
  .staff-table th,
  .staff-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}

/* College Staff page card styles for Administrative Staff */
.staff-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.staff-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid rgba(14, 23, 68, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.staff-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: bold;
}

.staff-role {
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.staff-contact {
  color: var(--secondary);
  font-weight: 700;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .staff-cards {
    grid-template-columns: 1fr;
  }
  .staff-card {
    padding: 1rem;
  }
}

/* RTI Form Styles */
.rti-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(14, 23, 68, 0.2);
  border-radius: 0.25rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(14, 23, 68, 0.1);
}

.form-note {
  background-color: rgba(245, 230, 211, 0.5);
  padding: 1rem;
  border-radius: 0.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .rti-form {
    padding: 0 1rem;
  }
}

/* Contact Form Styles */
.contact-form {
  background: rgba(245, 230, 211, 0.3);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(14, 23, 68, 0.2);
  border-radius: 0.25rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(14, 23, 68, 0.1);
}

.contact-form .btn {
  width: 100%;
}

/* Map Placeholder */
.map-placeholder {
  height: 300px;
  background-color: rgba(14, 23, 68, 0.05);
  border: 1px dashed rgba(14, 23, 68, 0.08);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .contact-form {
    padding: 1rem;
  }
  .map-placeholder {
    height: 200px;
    font-size: 1rem;
  }
}

/* News/Notice Styles */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.news-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--primary);
}

.news-date {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.news-title {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.news-content {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

.news-link {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-link:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .news-list {
    gap: 1.5rem;
  }
  .news-item {
    padding: 1rem;
  }
}
