@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root{
  --maroon: #992600;
  --maroon-dark: #6a0000;
  --accent: #19c6d3;
  --muted: #6c757d;
  --bg: #f7f9fb;
  --card-bg: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 18px rgba(16,24,40,0.06);
}

/* Global typography & layout */
* { box-sizing: border-box; }
html, body {
  height: 100%;
  background: var(--bg);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color: #222;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
}

/* Header bar */
.header-bar {
  background-color: var(--maroon);
  color: #fff;
  padding: 6px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.header-bar a { color: #fff; text-decoration: none; }

/* Icon styles */
.header-bar .icons a {
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:50%; margin-left:10px;
  background: rgba(255,255,255,0.08); color:#fff; text-decoration:none;
  transition: transform .18s ease, background .18s ease;
}
.header-bar .icons a:hover { transform: translateY(-3px); background: rgba(255,255,255,0.16); }

/* Navbar title */
.navbar-brand { font-weight:700; color: var(--maroon); font-size: 1.35rem; }

/* Standardize headings across site */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  color: #111;
  margin-bottom: .75rem;
}
h1 { font-size: 2rem; color: var(--maroon); }
h2 { font-size: 1.6rem; }
p, li, label { color: #333; }

/* general containers */
.container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }

/* Card / bordered container (used for requirements and form boxes) */
.bordered-container, .card, .shadow-sm {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Buttons */
.btn-primary {
  background: var(--maroon);
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
}

.btn-primary:hover { background: var(--maroon-dark); transform: translateY(-2px); }

.btn-success {
  background: var(--accent);
  border: none;
  color: #fff;
}

/* Form controls */
.form-control, .form-select {
  background: #fff;
  border: 1px solid #e6e8eb;
  padding: 10px 12px;
  border-radius: 8px;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: rgba(153,38,0,0.85);
  box-shadow: 0 6px 18px rgba(153,38,0,0.06);
}

/* Small helpers */
.text-muted { color: var(--muted) !important; }

/* Footer */
footer {
  background: #f1f3f5;
  padding: 42px 20px;
  color: #333;
  margin-top: 48px;
}
.footer_main { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 20px; align-items:start; }

/* Standard success / error messages */
.success-message { color: #198754; font-weight:600; }
.error-message { color: #dc3545; font-weight:600; }

/* Registration form specific */
.registration-form {
  max-width: 760px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.96));
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(19,35,55,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}
.registration-form h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
  color: var(--maroon);
}
.registration-form p { margin-bottom: 1rem; color: var(--muted); }

/* Student ID box shown after successful registration */
.student-id-box {
  background: linear-gradient(90deg, rgba(25,198,211,0.06), rgba(153,38,0,0.03));
  border: 1px solid rgba(153,38,0,0.08);
  color: #0b3a3b;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
}

/* Make forms more airy on small screens */
@media (max-width: 768px) {
  .registration-form { padding: 20px; border-radius: 10px; }
  h1 { font-size: 1.25rem; }
}

/* Ensure site wide consistency for the student portal dropdown forms */
.student-auth-menu .form-control {
  border-radius: 8px;
  padding: 10px 12px;
}

/* Small clear visual improvements for lists used in admission pages */
.admission-section .requirements ul { padding-left: 1.1rem; margin-top: .5rem; }
.admission-section .requirements li { margin-bottom: .45rem; }

a.text-decoration-none:hover { text-decoration: underline; color: var(--maroon-dark); }

/* ------------------- ADDED RESPONSIVE FIXES ------------------- */
.about {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.about .image { flex: 1 1 40rem; }
.about .image img { width: 100%; }
.about .content { width: 45rem; }

.about .content span {
  font-size: 2rem;
  color: #000;
}

.about .content h3 {
  padding-top: 2rem;
  font-size: 2.4rem;
  color: #263238;
}

.about .content p {
  padding: 1.5rem 0;
  line-height: 2;
  font-size: 1.4rem;
  color: #777;
}

/* Footer layout fix */
footer .footer_main {
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}
footer .footer_main .footer_tag {
  text-align: center;
}
footer .footer_main .footer_tag h2 {
  color: #000;
  margin-bottom: 25px;
  font-size: 30px;
}
footer .footer_main .footer_tag p {
  margin: 10px 0;
}

/* ------------------- MOBILE RESPONSIVE FIXES ------------------- */
@media (max-width: 768px) {

  /* Make navbar brand and links smaller */
  .navbar-brand {
    font-size: 18px;
    text-align: left;
  }

  .navbar-nav .nav-link {
    font-size: 14px;
    padding: 8px 10px;
  }

  /* Fix about section */
  .about {
    flex-direction: column;
    text-align: center;
  }

  .about .content {
    width: 100%;
    padding: 0 15px;
  }

  .about .content h3 {
    font-size: 1.6rem;
  }

  .about .content p {
    font-size: 1rem;
  }

  /* Footer grid: make it stack */
  footer .footer_main {
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }

  footer .footer_main .footer_tag h2 {
    font-size: 20px;
  }

  footer .footer_main .footer_tag p {
    font-size: 14px;
  }

  footer .end {
    flex-direction: column;
    text-align: center;
  }

  /* Reduce padding around sections */
  .content, section {
    padding: 20px 10px;
  }

  /* Make carousel captions readable */
  .carousel-caption h5 {
    font-size: 1.2rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }
}

/* -------- NAVBAR BRAND RESPONSIVENESS -------- */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: 'Times New Roman', serif;
  font-size: 26px;
  color: #610404;
  font-weight: bold;
  letter-spacing: 0;
  text-transform: uppercase;
}

.navbar-brand img {
  height: 50px;
  width: auto;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 18px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.2;
  }

  .navbar-brand img {
    height: 45px;
    margin-bottom: 4px;
  }

  .navbar-nav .nav-link {
    font-size: 14px;
  }
}

