@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@700&display=swap');

:root {
  --brand: #2fa4e7;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  padding-top: 90px;
  min-height: 100vh;
  background-color: #2d3b2a;
  background-image: url('/static/img/chalkboard-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* navbar */
.navbar-hub {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}
.navbar-hub .navbar-brand { color: var(--brand); font-weight: 700; }
.logo-img { max-height: 40px; }

/* school name heading */
.school-name {
  font-family: 'Raleway', sans-serif;
  text-align: center;
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  padding: 1.5rem 0 1rem;
  margin: 0;
}

/* hub grid */
.tile-row { justify-content: center; }

.hub-card {
  transition: transform .15s ease, box-shadow .15s ease;
  border: none;
  overflow: hidden;
}
.hub-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.25) !important; }

.btn-tile {
  padding: 0;
  border: none;
  display: block;
  width: 100%;
  background: none;
  line-height: 0;
}
.btn-tile {
  background: #fff;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-tile:hover { text-decoration: none; }
.btn-tile img {
  width: calc(100% - 2rem);
  height: 130px;
  object-fit: contain;
  display: block;
}

/* text-only tile (no image) */
.tile-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
  font-size: 1.3rem;
  color: #333;
  background: #fff;
  text-decoration: none;
  padding: 1rem;
  text-align: center;
}
.tile-label:hover { background: #f0f0f0; color: #000; text-decoration: none; }

/* on mobile + tablet: stack logo + buttons vertically, both centred */
@media (max-width: 991px) {
  body { padding-top: 120px; }
  .navbar-hub .container {
    flex-direction: column;
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .navbar-hub .navbar-brand {
    margin-right: 0 !important;
  }
  .hub-nav-actions {
    margin-left: 0 !important;
    justify-content: center !important;
    margin-top: 0.5rem;
  }
}

/* header action buttons (IT Support, SiteHub) */
.btn-hub-action {
  background-color: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}
.btn-hub-action:hover {
  background-color: #1e8ac8;
  border-color: #1e8ac8;
  color: #fff;
}

/* myhub landing: big buttons */
.landing-card { cursor: pointer; }
.landing-card .card-img-top { height: 220px; object-fit: cover; }

/* footer */
.hub-footer {
  color: rgba(255,255,255,.65);
  text-align: center;
  padding: 1.5rem 0 1rem;
  font-size: .85rem;
}
