/* ==========================================================================
   MIBIRIZI Saint Augustin TSS - Public Pages Theme
   Companion to ../../assets/css/main.css (accent #ffc451)
   ========================================================================== */

:root {
  --pub-accent: #ffc451;
  --pub-accent-dark: #e6ab2f;
  --pub-heading: #151515;
  --pub-default: #444444;
  --pub-dark: #060606;
}

body.public-page {
  background-color: #f5f6f8;
  padding-top: 82px;
}

/* --------------------------------------------------------------------------
   Page hero band
--------------------------------------------------------------------------- */
.public-hero {
  position: relative;
  padding: 62px 0 54px;
  background-size: cover;
  background-position: center center;
  color: #ffffff;
  text-align: center;
}

.public-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 6, 6, 0.82) 0%, rgba(6, 6, 6, 0.9) 100%);
}

.public-hero .container { position: relative; z-index: 1; }

.public-hero h1 {
  color: #ffffff;
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  font-size: 2.3rem;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}

.public-hero h1 span { color: var(--pub-accent); }

.public-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Content
--------------------------------------------------------------------------- */
.public-main { padding: 48px 0 64px; }

.section-title {
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--pub-heading);
  position: relative;
  padding-bottom: 10px;
  margin: 0 0 22px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 4px;
  border-radius: 2px;
  background: var(--pub-accent);
}

/* --------------------------------------------------------------------------
   Cards
--------------------------------------------------------------------------- */
.panel-card {
  background: #ffffff;
  border: none;
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  padding: 30px;
}

.panel-card h2 {
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  color: var(--pub-heading);
}

.search-box { max-width: 720px; margin: 0 auto; }

.search-box .search-brand {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(255, 196, 81, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: var(--pub-accent);
}

/* --------------------------------------------------------------------------
   Forms
--------------------------------------------------------------------------- */
.form-label { font-weight: 600; color: var(--pub-heading); }

.form-control {
  border: 1.5px solid #e3e6ec;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.95rem;
}

.form-control:focus {
  border-color: var(--pub-accent);
  box-shadow: 0 0 0 0.2rem rgba(255, 196, 81, 0.22);
}

.input-icon-wrap { position: relative; }

.input-icon-wrap .bi {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa0ab;
  z-index: 5;
}

.input-icon-wrap .form-control { padding-left: 42px; }

/* --------------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------------- */
.btn-theme {
  background: var(--pub-accent);
  color: var(--pub-heading);
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 11px 30px;
  transition: all 0.25s ease;
}

.btn-theme:hover,
.btn-theme:focus {
  background: var(--pub-accent-dark);
  color: var(--pub-heading);
}

.btn-outline-theme {
  border: 2px solid var(--pub-accent);
  color: var(--pub-heading);
  font-weight: 700;
  border-radius: 8px;
  padding: 9px 24px;
}

.btn-outline-theme:hover {
  background: var(--pub-accent);
  color: var(--pub-heading);
}

/* --------------------------------------------------------------------------
   Tables
--------------------------------------------------------------------------- */
.table-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.table-theme { margin-bottom: 0; }

.table-theme thead th {
  background: var(--pub-heading);
  color: #ffffff;
  font-family: "Raleway", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  padding: 14px 16px;
}

.table-theme tbody td {
  padding: 13px 16px;
  vertical-align: middle;
  border-color: #f0f1f4;
  font-size: 0.92rem;
}

.table-theme tbody tr:hover { background: rgba(255, 196, 81, 0.07); }
.table-theme tbody tr:last-child td { border-bottom: none; }

/* --------------------------------------------------------------------------
   Document cards
--------------------------------------------------------------------------- */
.doc-card {
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 18px;
  background: #ffffff;
  transition: all 0.25s ease;
  height: 100%;
}

.doc-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border-color: var(--pub-accent);
}

.doc-card .doc-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(255, 196, 81, 0.16);
  color: var(--pub-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Student profile
--------------------------------------------------------------------------- */
.student-photo {
  width: 130px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e3e6ec;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

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

.kv-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #eceef2;
  font-size: 0.95rem;
}

.kv-list li:last-child { border-bottom: none; }

.kv-list .k { font-weight: 700; color: var(--pub-heading); }
.kv-list .v { float: right; font-weight: 500; color: #555; }

@media (max-width: 575.98px) {
  .kv-list .v { float: none; display: block; }
}

/* --------------------------------------------------------------------------
   Alerts
--------------------------------------------------------------------------- */
.alert {
  border: none;
  border-left: 4px solid var(--pub-accent);
  border-radius: 10px;
}

/* --------------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  body.public-page { padding-top: 70px; }
  .public-hero { padding: 46px 0 40px; }
  .public-hero h1 { font-size: 1.7rem; }
  .public-main { padding: 34px 0 46px; }
  .panel-card { padding: 20px; }
}
