/* MSAD #42 — main stylesheet */
:root {
  --navy: #002147;
  --navy-dark: #001a39;
  --cyan: #00cbff;
  --red: #d8262c;
  --gray-bg: #f4f6f8;
  --border: #dfe4ea;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #1a2233;
  background: #fff;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--cyan); }
h1,h2,h3,h4,h5,h6 { font-family: 'Roboto', sans-serif; font-weight: 500; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: 2.2rem; } h2 { font-size: 1.6rem; } h3 { font-size: 1.25rem; } h4 { font-size: 1.05rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Emergency bar */
.emergency-bar {
  background: var(--red);
  color: #fff;
  text-align: center;
  font-weight: 500;
  padding: 12px 16px;
  letter-spacing: .3px;
}
.emergency-bar i { margin-right: 6px; }

/* Top bar */
.topbar {
  background: var(--navy-dark);
  color: #f0f4fa;
  font-size: 15px;
  padding: 12px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.topbar a { color: #ffffff; margin-left: 18px; font-weight: 500; }
.topbar a:first-child { margin-left: 0; }
.topbar a:hover { color: var(--cyan); }
.topbar-address { color: #d4dcea; font-weight: 500; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); padding: 18px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.logo img { width: 300px; max-width: 100%; height: auto; }
.header-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.social {
  width: 38px; height: 38px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; color: #fff; font-size: 16px;
  transition: transform .15s ease;
}
.social:hover { transform: translateY(-2px); color: #fff; }
.social.fb { background: #1877f2; }
.social.yt { background: #ff0000; }

/* Panther TV Live button */
.ptv-live {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); color: #fff !important;
  padding: 12px 20px; border-radius: 999px; font-weight: 700;
  text-transform: uppercase; font-size: 13px; letter-spacing: .5px;
  box-shadow: 0 4px 14px rgba(216,38,44,.45);
  animation: ptv-pulse 1.8s ease-in-out infinite;
  border: 2px solid #fff3;
}
.ptv-live:hover { color: #fff; transform: scale(1.03); }
.ptv-live .dot {
  width: 10px; height: 10px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 0 #fff;
  animation: ptv-dot 1.4s ease-out infinite;
}
@keyframes ptv-pulse {
  0%,100% { box-shadow: 0 4px 14px rgba(216,38,44,.45); }
  50%     { box-shadow: 0 4px 28px rgba(216,38,44,.85); }
}
@keyframes ptv-dot {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.85); }
  70%  { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* Main nav */
.mainnav { background: var(--navy); }
.mainnav .container { display: flex; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 22px; padding: 14px 0; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block; color: #fff; padding: 20px 22px;
  text-transform: uppercase; font-size: 16px; font-weight: 600; letter-spacing: .4px;
}
.nav-list > li > a:hover { color: var(--cyan); }
.nav-list li ul {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; min-width: 240px; list-style: none; margin: 0; padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.15); z-index: 100;
}
.nav-list li:hover > ul { display: block; }
.nav-list li ul li a { display: block; padding: 10px 16px; color: var(--navy); font-size: 14px; }
.nav-list li ul li a:hover { background: var(--gray-bg); color: var(--cyan); }

/* Top section background graphic behind slider */
.top-section {
  position: relative;
  background:
    linear-gradient(180deg, rgba(0,19,42,.55) 0%, rgba(0,33,71,.25) 50%, rgba(0,33,71,.65) 100%),
    radial-gradient(circle at 20% 20%, #1e4a8a 0%, #002147 45%, #00132a 100%);
}
.top-section::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    radial-gradient(rgba(0,203,255,.05) 1px, transparent 1px);
  background-size: 28px 28px, 56px 56px;
  background-position: 0 0, 14px 14px;
  pointer-events: none;
  z-index: 0;
}
.top-section .hero-slider { position: relative; z-index: 1; }

/* Slider */
.hero-slider { position: relative; }
.hero-slider .swiper { width: 100%; height: 460px; }
.hero-slider .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider .swiper-slide .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff; padding: 30px 40px; font-size: 20px; font-weight: 500;
}
.hero-slider .swiper-button-next, .hero-slider .swiper-button-prev { color: #fff; }
.hero-slider .swiper-pagination-bullet-active { background: var(--cyan); }

/* Three column section */
.three-col {
  display: grid; gap: 24px; padding: 36px 0;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: stretch;
}
.three-col > div {
  display: flex;
  flex-direction: column;
}
.three-col > div > .card { display: flex; flex-direction: column; }
.three-col > div > .card:last-child { flex: 1 1 auto; }
.three-col > div > .card:last-child .card-body { flex: 1 1 auto; }
@media (max-width: 960px) { .three-col { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  margin-bottom: 24px; overflow: hidden;
}
.card > h3,
.card > h2 {
  background: var(--navy) !important;
  color: #fff !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  font-size: 15px !important;
  text-transform: uppercase;
  letter-spacing: .5px;
  border: 0 !important;
  border-radius: 0 !important;
}
.card > h3 i,
.card > h2 i { color: #fff !important; margin-right: 8px; }
.card .card-body { padding: 16px 18px; }
.card ul { list-style: none; padding: 0; margin: 0; }
.card li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.card li:last-child { border-bottom: 0; }
.card li a { font-weight: 500; }
.card li a i { color: var(--cyan); margin-right: 6px; }

/* Apparel button */
.apparel-btn {
  display: block; text-align: center;
  background: linear-gradient(135deg, #002147, #1e4a8a);
  color: #fff !important; padding: 22px; border-radius: 8px; font-size: 18px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 24px; transition: transform .15s;
}
.apparel-btn:hover { transform: translateY(-2px); }
.apparel-btn i { margin-right: 8px; }

/* Snow day */
.snow-card .card-body { background: #eaf6ff; }

/* Announcements */
.announcement { padding: 12px 0; border-bottom: 1px solid var(--border); }
.announcement:last-child { border-bottom: 0; }
.announcement h4 { margin: 0 0 4px; }
.announcement .meta { font-size: 12px; color: #6a7787; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #cfd8e3; margin-top: 40px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  padding: 50px 20px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { color: #fff; border-bottom: 2px solid var(--cyan); padding-bottom: 6px; margin-bottom: 12px; display: inline-block; }
.footer-col p { margin: 0 0 10px; }
.footer-col a { color: #cfd8e3; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  background: #00132a; color: #8aa1bd; text-align: center;
  padding: 16px; font-size: 13px;
}

/* Page content */
.page-wrap { padding: 36px 0 50px; }
.page-wrap h1 { border-bottom: 3px solid var(--cyan); padding-bottom: 10px; }

/* Staff section heading */
.staff-section { margin-top: 56px; position: relative; }
.staff-section:first-of-type { margin-top: 24px; }
.staff-section-title {
  font-size: 1.4rem;
  color: var(--navy);
  margin: 0 0 18px;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--navy);
  position: relative;
}
.staff-section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 70px; height: 2px;
  background: var(--cyan);
}

/* Staff grid */
.staff-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 900px) { .staff-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .staff-grid { grid-template-columns: 1fr; } }
.staff-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s;
  display: flex; align-items: center; gap: 16px; padding: 18px;
  border-left: 4px solid var(--navy);
}
.staff-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,33,71,.12);
  border-left-color: var(--cyan);
}
.staff-card .initials {
  flex: 0 0 60px; width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #003d7a);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px; letter-spacing: .5px;
  font-family: 'Roboto', sans-serif;
  box-shadow: 0 2px 6px rgba(0,33,71,.2);
}
.staff-card .info { flex: 1 1 auto; min-width: 0; }
.staff-card .name { font-weight: 700; color: var(--navy); margin: 0 0 2px; font-size: 16px; }
.staff-card .title { color: #6a7787; font-size: 13px; line-height: 1.3; }
.staff-card .contact {
  font-size: 13px; margin-top: 6px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  color: #6a7787;
}
.staff-card .contact > div { display: inline-flex; align-items: center; gap: 5px; }
.staff-card .contact i { color: var(--cyan); }
.staff-msg-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0; background: none; color: var(--navy) !important;
  font-size: 13px; font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.staff-msg-btn:hover { color: var(--cyan) !important; border-bottom-color: var(--cyan); }
.staff-msg-btn i { color: var(--cyan) !important; }

/* Page with sidebar layout */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: start;
}
.page-with-sidebar .page-main { min-width: 0; }
.page-sidebar {
  background: #f4f6f8;
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  border-radius: 4px;
  padding: 18px 20px;
  position: sticky;
  top: 16px;
}
.page-sidebar-img {
  margin: -18px -20px 14px;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-sidebar-img img { max-width: 180px; margin: 0 auto; }
.page-sidebar h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  padding-bottom: 8px;
}
.page-sidebar ul { list-style: none; margin: 0; padding: 0; }
.page-sidebar li { border-bottom: 1px solid #e3e8ee; }
.page-sidebar li:last-child { border-bottom: 0; }
.page-sidebar a {
  display: block;
  padding: 9px 4px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
}
.page-sidebar a:hover { color: var(--cyan); }
.page-sidebar a.external::after {
  content: " \f08e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
  margin-left: 4px;
  opacity: .6;
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-list { display: none; width: 100%; flex-direction: column; }
  .nav-list.open { display: flex; }
  .nav-list > li > a { padding: 12px 0; }
  .nav-list li ul { position: static; box-shadow: none; padding-left: 16px; }
  .nav-list li ul { display: block; }
  .page-with-sidebar { grid-template-columns: 1fr; }
  .page-sidebar { position: static; }
}
