/* =========================
   GLOBAL
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f6f6f6;
  color: #222;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.section {
  padding: 60px 0;
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: #f5b400;
  color: #222;
}

.btn-primary:hover {
  background: #d89d00;
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
}

.btn-dark {
  background: #7b1024;
  color: #fff;
}

.btn-dark:hover {
  background: #5f0d1b;
}

.btn-light {
  background: #fff;
  color: #7b1024;
}

.btn-light:hover {
  background: #eee;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  background: #7b1024;
  color: #fff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.navbar .nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.logo h2 {
  font-size: 18px;
  line-height: 1.2;
}

.logo span {
  font-size: 12px;
  display: block;
  font-weight: normal;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: #fff;
  font-size: 14px;
  transition: 0.3s ease;
}

.nav-links a:hover {
  color: #f5b400;
}

.nav-links .apply-btn {
  background: #f5b400;
  color: #222;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: bold;
}

.nav-links .portal-btn {
  border: 1px solid #fff;
  padding: 10px 16px;
  border-radius: 8px;
}

/* =========================
   HERO
========================= */
.hero {
  background: linear-gradient(135deg, #7b1024, #9f1830);
  color: #fff;
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 16px;
  margin-bottom: 25px;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-image img {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* =========================
   STATS
========================= */
.stats {
  background: #fff;
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-box {
  background: #fff;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.stat-box h3 {
  font-size: 28px;
  color: #7b1024;
  margin-bottom: 8px;
}

.stat-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  background: #fdf0d5;
  color: #7b1024;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-box {
  background: #fff;
  padding: 30px 20px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
}

/* =========================
   CARDS
========================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 35px;
}

.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 22px;
}

.card-body h3 {
  color: #7b1024;
  margin-bottom: 10px;
}

.card-body p {
  font-size: 14px;
  color: #555;
}

/* =========================
   CTA
========================= */
.cta {
  background: linear-gradient(135deg, #7b1024, #9f1830);
  color: #fff;
  text-align: center;
  padding: 70px 20px;
  border-radius: 18px;
}

.cta h2 {
  font-size: 34px;
  margin-bottom: 15px;
}

.cta p {
  margin-bottom: 25px;
}

/* =========================
   PAGE HEADER
========================= */
.page-header {
  background: linear-gradient(135deg, #7b1024, #9f1830);
  color: #fff;
  padding: 60px 0;
}

.page-header h1 {
  font-size: 38px;
  margin-bottom: 10px;
}

/* =========================
   INFO BOXES
========================= */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 35px;
}

.info-box {
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.07);
}

.info-box h3 {
  color: #7b1024;
  margin-bottom: 12px;
}

/* =========================
   FORM
========================= */
.form-section {
  padding: 60px 0;
}

.form-card {
  background: #fff;
  padding: 35px;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  max-width: 900px;
  margin: auto;
}

.form-card h2 {
  background: #7b1024;
  color: #fff;
  padding: 18px 22px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  outline: none;
  font-size: 14px;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 20px;
}

/* =========================
PORTAL PAGE
========================= */
.portal-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #7b1024, #a30f2d);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
}

.portal-container {
  width: 100%;
  max-width: 1050px;
  text-align: center;
}

.portal-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.portal-logo img {
  width: 85px;
  height: 85px;
  object-fit: contain;
}

.portal-header h1 {
  color: #fff;
  font-size: 46px; /* was too big before */
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.portal-header p {
  color: #f8dfe5;
  max-width: 780px;
  margin: 0 auto 40px;
  font-size: 18px;
  line-height: 1.7;
}

/* GRID */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 820px;
  margin: 0 auto 45px;
}

.portal-card {
  background: #fff;
  border-radius: 22px;
  padding: 32px 24px;
  min-height: 180px;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
  transition: 0.3s ease;
  color: #222;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.portal-card:hover {
  transform: translateY(-6px);
}

.portal-card i {
  font-size: 30px;
  color: #7b1024;
  margin-bottom: 14px;
}

.portal-card h3 {
  color: #7b1024;
  font-size: 21px;
  margin-bottom: 10px;
  font-weight: 700;
}

.portal-card p {
  color: #555;
  font-size: 15px;
}

/* FOOTER LINKS */
.portal-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.portal-links a {
  color: #fff;
  font-size: 18px;
  text-decoration: underline;
  font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .portal-header h1 {
    font-size: 42px;
  }

  .portal-header p {
    font-size: 18px;
  }

  .portal-card h3 {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-header h1 {
    font-size: 34px;
  }

  .portal-header p {
    font-size: 16px;
    margin-bottom: 35px;
  }

  .portal-card {
    padding: 35px 24px;
  }

  .portal-links {
    flex-direction: column;
    gap: 16px;
  }
}
/* =========================
   LOGIN
========================= */
/* =========================
LOGIN PAGES
========================= */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5f5f5;
  padding: 30px 20px;
}

.login-card {
  background: #fff;
  padding: 35px;
  width: 100%;
  max-width: 450px;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  text-align: center;
}

.login-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #7b1024;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.login-card h2 {
  color: #7b1024;
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 700;
}

.login-card p {
  color: #666;
  margin-bottom: 25px;
  font-size: 14px;
  line-height: 1.6;
}

.login-form {
  text-align: left;
}

.login-form .form-group {
  margin-bottom: 18px;
}

.login-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
}

.login-form input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  outline: none;
  font-size: 14px;
  font-family: inherit;
}

.login-form input:focus {
  border-color: #7b1024;
  box-shadow: 0 0 0 3px rgba(123, 16, 36, 0.08);
}

.login-btn {
  width: 100%;
  margin-top: 10px;
  background: #7b1024;
  color: #fff;
  padding: 13px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  transition: 0.3s ease;
}

.login-btn:hover {
  background: #5f0d1b;
}

.login-footer {
  margin-top: 22px;
  font-size: 14px;
}

.login-footer a {
  color: #7b1024;
  font-weight: 600;
  text-decoration: none;
}
/* =========================
   FOOTER
========================= */
.footer {
  background: #7b1024;
  color: #fff;
  padding: 50px 0 20px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer h3, .footer h4 {
  margin-bottom: 14px;
}

.footer p, .footer a {
  font-size: 14px;
  color: #f3f3f3;
  margin-bottom: 8px;
  display: block;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 30px;
  padding-top: 15px;
  font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
  .hero-grid,
  .cards-grid,
  .stats-grid,
  .info-grid,
  .footer-grid,
  .portal-options,
  .form-row {
    grid-template-columns: 1fr;
  }

  .nav-content {
    flex-direction: column;
    gap: 15px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 32px;
  }

  .portal-card h1 {
    font-size: 32px;
  }
}

/* HERO BUTTON LAYOUT */
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 25px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-back-btn {
  margin-top: 0;
}

.section-subtitle {
  margin-top: 30px;
  color: #7b1024;
}

.principal-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.principal-container .card {
  max-width: 300px;
}

.map-box {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* =========================
DASHBOARD LAYOUT
========================= */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: #f3f4f6;
}

/* =========================
SIDEBAR
========================= */
.sidebar {
  width: 250px;
  background: linear-gradient(180deg, #7b1024, #920d23);
  color: #fff;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

.sidebar-logo {
  margin-bottom: 30px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand i {
  font-size: 28px;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-title-group h2 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.sidebar-title-group p {
  font-size: 12px;
  color: #f3dce2;
  margin-top: 4px;
  margin-bottom: 0;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  color: #fff;
  margin-bottom: 12px;
  transition: 0.3s ease;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.sidebar-menu a i {
  width: 20px;
  font-size: 16px;
  text-align: center;
}

.sidebar-menu a:hover {
  background: rgba(255,255,255,0.10);
}

.sidebar-menu a.active {
  background: #fff;
  color: #7b1024;
  font-weight: 700;
}

.sidebar-menu a.active i {
  color: #7b1024;
}

.sidebar-footer {
  margin-top: 30px;
}

.admin-user-box {
  margin-bottom: 18px;
  font-size: 12px;
  color: #f5dce2;
}

.admin-user-box strong {
  display: block;
  color: #fff;
  font-size: 13px;
  margin-bottom: 4px;
}

.admin-user-box span {
  font-size: 12px;
  opacity: 0.85;
}

.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  padding: 10px 4px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}

/* =========================
MAIN DASHBOARD
========================= */

.dashboard-main {
  flex: 1;
  padding: 28px 30px;
  overflow-x: auto;
}

.dashboard-header {
  margin-bottom: 20px;
}

.dashboard-header h1 {
  font-size: 34px;
  font-weight: 700;
  color: #1f2937;
}

.dashboard-header p {
  color: #666;
}

/* =========================
CARDS
========================= */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.dashboard-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-left: 5px solid transparent;
}

.dashboard-card h3 {
  font-size: 14px;
  color: #6b7280;
  margin-top: 12px;
  font-weight: 600;
}

.dashboard-card h2 {
  font-size: 28px;
  color: #111827;
  font-weight: 700;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-icon {
  font-size: 22px;
}

/* Border colors */
.border-maroon { border-left-color: #7b1024; }
.border-yellow { border-left-color: #f4b400; }
.border-green { border-left-color: #22c55e; }
.border-red { border-left-color: #ef4444; }
.border-purple { border-left-color: #a855f7; }

/* Icon colors */
.maroon-icon { color: #7b1024; }
.yellow-icon { color: #f4b400; }
.green-icon { color: #22c55e; }
.red-icon { color: #ef4444; }
.purple-icon { color: #a855f7; }

/* =========================
BANNERS
========================= */
.dashboard-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 25px;
}

.dashboard-banner {
  padding: 22px 24px;
  border-radius: 14px;
  color: #fff;
}

.dashboard-banner h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.dashboard-banner p {
  font-size: 14px;
  margin-bottom: 18px;
  opacity: 0.95;
}

.banner-red {
  background: linear-gradient(135deg, #8f1730, #b4233f);
}

.banner-blue {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.banner-btn {
  display: inline-block;
  background: #fff;
  color: #7b1024;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.banner-blue .banner-btn {
  color: #1d4ed8;
}

/* =========================
SECTION / TABLE
========================= */
.dashboard-section,
.table-card,
.info-card {
  background: #fff;
  border-radius: 18px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.dashboard-section h2,
.info-card-header h2 {
  margin-bottom: 20px;
  color: #222;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.dashboard-table th {
  background: #fafafa;
  color: #555;
}

/* =========================
BADGES
========================= */
.badge {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.badge.yellow {
  background: #fff3cd;
  color: #b58105;
}

.badge.green {
  background: #d9fbe6;
  color: #0f7a3d;
}

.badge.red {
  background: #ffe0e0;
  color: #b42318;
}

.badge.blue {
  background: #e0e7ff;
  color: #3730a3;
}

/* =========================
ADMIN DASHBOARD ONLY
========================= */
.stats-group {
  margin-bottom: 26px;
}

.stats-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 14px;
}

.admin-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* =========================
REPORTS PAGE
========================= */
.reports-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20px;
margin-bottom: 24px;
}

.reports-actions {
display: flex;
gap: 12px;
flex-wrap: wrap;
}

.export-btn {
background: #7b1024;
color: #fff;
border: none;
padding: 11px 16px;
border-radius: 10px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: 0.2s ease;
}

.export-btn:hover {
opacity: 0.92;
}

.secondary-btn {
background: #1f2937;
}

/* SUMMARY CARDS */
.reports-summary-cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 18px;
margin-bottom: 20px;
}

.report-summary-card {
background: #fff;
border-radius: 14px;
padding: 18px 20px;
box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.summary-top {
margin-bottom: 12px;
}

.summary-top i {
color: #8f1730;
font-size: 18px;
}

.report-summary-card h4 {
font-size: 14px;
color: #6b7280;
margin-bottom: 10px;
}

.report-summary-card h2 {
font-size: 30px;
font-weight: 700;
color: #111827;
margin: 0;
}

.green-text {
color: #16a34a !important;
}

/* CHARTS */
.reports-chart-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 18px;
margin-bottom: 20px;
}

.report-chart-card {
background: #fff;
border-radius: 16px;
padding: 18px 18px 24px;
box-shadow: 0 4px 12px rgba(0,0,0,0.06);
min-height: 320px;
}

.report-chart-card h3 {
font-size: 15px;
font-weight: 700;
color: #1f2937;
margin-bottom: 16px;
}

.report-chart-card canvas {
width: 100% !important;
height: 240px !important;
}

.wide-chart {
min-height: 380px;
margin-bottom: 22px;
}

.wide-chart canvas {
height: 280px !important;
}

/* TABLE */
.report-table-card {
background: #fff;
border-radius: 16px;
padding: 20px;
box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.report-table-card h3 {
font-size: 15px;
font-weight: 700;
color: #1f2937;
margin-bottom: 18px;
}


/* PRINT */
@media print {
body {
background: #fff;
}

.sidebar,
.no-print,
.reports-actions {
display: none !important;
}

.dashboard-layout {
display: block;
}

.dashboard-main {
width: 100%;
padding: 0;
margin: 0;
}

.report-chart-card,
.report-summary-card,
.report-table-card {
box-shadow: none;
border: 1px solid #ddd;
}

.report-chart-card canvas,
.wide-chart canvas {
height: 250px !important;
}
}

/* RESPONSIVE */
@media (max-width: 992px) {
.reports-summary-cards {
grid-template-columns: 1fr;
}

.reports-chart-grid {
grid-template-columns: 1fr;
}

.reports-header {
flex-direction: column;
align-items: flex-start;
}
}

/* =========================
SCHOOL INFO
========================= */
.info-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.edit-btn {
  background: #7b1024;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.edit-btn:hover {
  background: #5f0d1b;
}

.info-card p {
  color: #333;
  line-height: 1.8;
  margin-bottom: 14px;
}

.info-meta {
  margin-top: 20px;
  color: #777;
  font-size: 14px;
}

.edit-textarea,
textarea,
input,
select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  margin-top: 10px;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #f5b400;
  color: #222;
}

.btn-primary:hover {
  background: #d89d00;
}

.btn-light {
  background: #eee;
  color: #222;
}

.btn-light:hover {
  background: #ddd;
}

/* =========================
RESPONSIVE
========================= */
@media (max-width: 1100px) {
  .dashboard-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-banner-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-height: 0;
  }

  .dashboard-cards {
    grid-template-columns: 1fr;
  }

  .dashboard-main {
    padding: 20px;
  }

  .dashboard-header h1 {
    font-size: 28px;
  }
}

/* =========================
   ALUMNI DASHBOARD ENHANCEMENTS
========================= */

.sidebar-user {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 12px;
}

.profile-banner {
  background: linear-gradient(135deg, #7b1024, #a01834);
  color: #fff;
  padding: 24px 28px;
  border-radius: 16px;
  margin-bottom: 25px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.profile-banner h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.profile-grid.small-gap {
  gap: 10px;
  margin-top: 15px;
  margin-bottom: 0;
}

.profile-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.profile-card h3 {
  margin-bottom: 16px;
  color: #7b1024;
  font-size: 18px;
}

.profile-card p,
.dashboard-section p {
  margin-bottom: 10px;
  color: #444;
}

.notice-box {
  background: #eef5ff;
  border-left: 5px solid #1976d2;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.notice-box strong {
  display: block;
  margin-bottom: 10px;
  color: #0d47a1;
}

.profile-note {
  margin-top: 20px;
  color: #777;
  font-size: 14px;
}

.update-btn {
  margin-top: 14px;
  display: inline-block;
}

.save-btn {
  text-align: right;
  margin-top: 20px;
}

textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  resize: vertical;
  font-family: inherit;
}

@media (max-width: 992px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}
  .dashboard-cards,
  .dashboard-banner-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

.dashboard-link-box {
  text-decoration: none;
  display: block;
}

.table-link {
  color: #7b1024;
  font-weight: 600;
  text-decoration: none;
}

.table-link:hover {
  text-decoration: underline;
}

.full-btn {
  width: 100%;
  text-align: center;
  display: inline-block;
}

.full-btn {
  width: 100%;
  text-align: center;
  display: inline-block;
}


/* =========================
   SCHOOL INFO MANAGEMENT
========================= */
.info-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px 30px;
  margin-bottom: 25px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.info-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.info-card-header h2 {
  color: #7b1024;
  font-size: 20px;
}

.edit-btn {
  background: transparent;
  border: none;
  color: #7b1024;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.edit-btn:hover {
  opacity: 0.8;
}

.info-card p {
  color: #333;
  line-height: 1.8;
  margin-bottom: 10px;
}

.info-meta {
  margin-top: 20px;
  color: #777;
  font-size: 14px;
}

/* =========================
   SCHOOL INFO EDITABLE
========================= */
.hidden {
  display: none;
}

.edit-textarea {
  width: 100%;
  min-height: 150px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  line-height: 1.7;
  font-family: inherit;
  resize: vertical;
  margin-top: 10px;
}

/* Screen-reader only label */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.table-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table th {
  text-align: left;
  padding: 12px;
  font-size: 13px;
  color: #6b7280;
}

.dashboard-table td {
  padding: 12px;
  font-size: 14px;
  border-top: 1px solid #eee;
}

.badge {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.badge.yellow {
  background: #fff3cd;
  color: #b58105;
}

/* =========================
ABOUT PAGE - MISSION / VISION
========================= */
.about-highlight-section {
  margin-top: -70px;
  position: relative;
  z-index: 2;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  margin-bottom: 40px;
}

.highlight-box {
  background: linear-gradient(135deg, #8f1730, #b4233f);
  color: #fff;
  border-radius: 24px;
  padding: 38px 36px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.info-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.info-title i {
  font-size: 34px;
  color: #fff;
}

.info-title h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.highlight-box p {
  font-size: 17px;
  line-height: 1.9;
  color: #fdf1f4;
}

/* =========================
ABOUT PAGE - LOWER BOXES
========================= */
.lower-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 10px;
}

.white-box {
  background: #fff;
  border-radius: 22px;
  padding: 32px 30px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.white-box h3 {
  font-size: 24px;
  color: #7b1024;
  margin-bottom: 18px;
}

.white-box p {
  font-size: 16px;
  color: #444;
  line-height: 1.9;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .mission-vision-grid,
  .lower-info-grid {
    grid-template-columns: 1fr;
  }

  .about-highlight-section {
    margin-top: -40px;
  }
}

/* =========================
SECTION HEADINGS
========================= */
.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.section-heading i {
  font-size: 42px;
  color: #8f1730;
}

.section-heading h2 {
  font-size: 28px;
  color: #8f1730;
  font-weight: 700;
  margin: 0;
}

/* =========================
HISTORY SECTION
========================= */
.history-section {
  padding-top: 30px;
  padding-bottom: 40px;
}

.history-card {
  background: #fff;
  border-radius: 20px;
  padding: 38px 36px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.history-card p {
  font-size: 17px;
  line-height: 2;
  color: #24324a;
  margin: 0;
}

/* =========================
ACHIEVEMENTS SECTION
========================= */
.achievements-section {
  padding-top: 10px;
  padding-bottom: 60px;
}

.achievement-card {
  background: #f5f0cc;
  border-left: 5px solid #f0b400;
  border-radius: 20px;
  padding: 34px 36px;
}

.achievement-card p {
  font-size: 17px;
  line-height: 2;
  color: #24324a;
  margin: 0;
}

/* =========================
CARDS GRID
========================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 20px;
}

/* Center principal */
.principal-grid {
  grid-template-columns: 1fr;
  max-width: 260px;
  margin: 0 auto 40px;
}

/* =========================
CARD DESIGN (SAME FOR ALL)
========================= */
.card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  text-align: center;
}

/* IMAGE SIZE FIX */
.card img {
  width: 100%;
  height: 270px;
  object-fit: contain;
  background: #f3f3f3;
  display: block;
}
/* TEXT AREA */
.card-body {
  padding: 18px 16px;
}

.card-body h3 {
  font-size: 18px;
  color: #7b1024;
  margin-bottom: 6px;
}

.card-body p {
  font-size: 14px;
  color: #555;
}

/* =========================
LOGIN FOOTER
========================= */
.login-footer {
  margin-top: 22px;
  text-align: center;
}

.register-text {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.register-text a {
  color: #7b1024;
  font-weight: 600;
  text-decoration: none;
}

.register-text a:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  font-size: 13px;
  color: #777;
  text-decoration: none;
}

.back-link:hover {
  color: #7b1024;
}

/* =========================
SUCCESS POPUP
========================= */
.success-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 9999;
}

.success-popup.show {
  opacity: 1;
  visibility: visible;
}

.success-popup-content {
  background: #fff;
  padding: 35px 30px;
  border-radius: 18px;
  text-align: center;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.success-popup-content i {
  font-size: 52px;
  color: #28a745;
  margin-bottom: 16px;
}

.success-popup-content h3 {
  font-size: 28px;
  color: #7b1024;
  margin-bottom: 10px;
}

.success-popup-content p {
  font-size: 15px;
  color: #666;
}

/* =========================
   MODAL POPUP (TOP POSITION)
========================= */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  justify-content: center;
  align-items: flex-start; /* TOP instead of center */
  padding-top: 80px; /* distance from top */
  padding-left: 20px;
  padding-right: 20px;
}

.modal-content {
  background: #fff;
  padding: 30px 25px;
  border-radius: 18px;
  width: 100%;
  max-width: 430px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  position: relative;
  animation: slideDownFade 0.3s ease;
}

.modal-content h3 {
  margin-bottom: 10px;
  color: #7b1024;
  font-size: 24px;
}

.modal-content p {
  color: #555;
  font-size: 15px;
  margin-bottom: 22px;
  line-height: 1.6;
}

.modal-icon {
  width: 70px;
  height: 70px;
  background: #eaf7ee;
  color: #1f9d55;
  font-size: 34px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  transition: 0.2s ease;
}

.close-btn:hover {
  color: #7b1024;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* SCHOOL INFO PAGE */
.edit-btn {
  background: #7b1024;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.edit-btn:hover {
  opacity: 0.92;
}

.edit-textarea {
  width: 100%;
  min-height: 120px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
}

.hidden {
  display: none;
}

.info-meta {
  margin-top: 18px;
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

.info-card-header h2 i {
  margin-right: 10px;
  color: #7b1024;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =========================================
   🔥 ALUMNI DASHBOARD CARD FIX
   PLACE THIS IN admin.css (BOTTOM PART)
========================================= */

.alumni-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; /* spacing ng cards */
  margin-top: 20px;
}

/* Optional spacing ng sections */
.dashboard-section {
  margin-bottom: 25px;
}

/* 🔥 FORGOT LINK */
.forgot-link {
  text-align: right;
  margin-bottom: 10px;
}

.forgot-link a {
  font-size: 13px;
  color: #007bff;
  text-decoration: none;
}

/* 🔥 ERROR MESSAGE */
.error-msg {
  color: red;
  display: none;
  margin-top: 10px;
}

/* 🔥 MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  background: #fff;
  width: 350px;
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.modal-text {
  font-size: 13px;
  margin-bottom: 10px;
}

.modal-content input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-cancel {
  background: #ccc;
}


/* ASSIGN / UNASSIGN BUTTON */
.btn-dark {
  background: #9b1234;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.btn-dark:hover {
  background: #7f0f2b;
}

/* DELETE BUTTON */
.btn-danger {
  background: #5c0013;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.btn-danger:hover {
  background: #3f000d;
}

/* =========================
FACULTY DASHBOARD
========================= */

.faculty-cards{
  grid-template-columns: repeat(3, 280px);
  justify-content: flex-start;
}

/* =========================
DELETE BUTTON
========================= */

.btn-delete{
  background:#5c0013;
  color:#fff;
  border:none;
  padding:10px 16px;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
  transition:.3s;
  margin-left:6px;
}

.btn-delete:hover{
  background:#3f000d;
}

/* ===========================
FACULTY MODAL
=========================== */

.faculty-modal{
  background:#fff;
  width:450px;
  max-width:95%;
  margin:8% auto;
  padding:28px;
  border-radius:18px;
  box-shadow:0 15px 35px rgba(0,0,0,.18);
}

.faculty-modal h3{
  color:#7b1024;
  margin-bottom:20px;
  font-size:26px;
}

.modal-input{
  width:100%;
  padding:13px 15px;
  margin-bottom:15px;
  border:1px solid #ddd;
  border-radius:10px;
  font-size:14px;
}

.password-group{
  position:relative;
}

.password-toggle{
  position:absolute;
  right:16px;
  top:38%;
  transform:translateY(-50%);
  cursor:pointer;
  color:#666;
  font-size:17px;
}

.password-toggle:hover{
  color:#7b1024;
}

.modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  margin-top:10px;
}

.btn-save{
  background:#7b1024;
  color:white;
  border:none;
  padding:11px 22px;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
}

.btn-save:hover{
  background:#5f0d1b;
}

.btn-cancel-modal{
  background:#ececec;
  color:#333;
  border:none;
  padding:11px 22px;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
}

.btn-cancel-modal:hover{
  background:#d8d8d8;
}