:root{
  --pad: 16px;
  --radius: 12px;
  --border: #ddd;
  --bg: #f2f5f9;
  --text: #111;
}

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

#app {
  padding-bottom: 80px; /* space for tab bar */
}

.app-header {
  background: #0b2a4a; /* WAISA blue */
  color: #fff;
  padding: 12px 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.app-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .3px;
}

.app-subtitle {
  font-size: .75rem;
  opacity: .85;
  margin-top: 2px;
}

.container{
  max-width: 900px;
  margin: 0 auto;
  padding: var(--pad);
}

.card {
  background: #ffffff;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.card strong,
.card .item-title {
  font-weight: 600;
  color: #0b2a4a;
}

.card.eventhub {
  background: #0b2a4a;
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}

.card.eventhub .title,
.card.eventhub .small {
  color: rgba(255,255,255,.9);
}


.grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.btn{
  display: inline-block;
  width: 100%;
  text-decoration: none;
  text-align: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}

.btn.disabled{
  opacity: 0.45;
  pointer-events: none;
}

.small{
  font-size: 0.9rem;
  opacity: 0.75;
}

.title{
  font-size: 1.3rem;
  margin: 0 0 6px 0;
}
.view { 
  display:none; 
  padding: 14px 14px 80px; 
}
#view-home { 
  display:block; 
} 
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  display: flex;
  justify-content: space-around;
  align-items: center;
  transform: translateZ(0); /* Android does not show bottom nav until scroll */
  background: #0b2a4a;
  border-top: 1px solid rgba(255,255,255,.15);

  padding: 10px 0 calc(env(safe-area-inset-bottom, 0) + 6px);
  z-index: 1000;
}

.tabbar a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  padding: 8px 0;
}

.tabbar .material-symbols-outlined {
  display: block;
  font-size: 20px;
  margin-bottom: 2px;
}


.tabbar a.active {
  color: #ffffff;
  font-weight: 600;
}


.tabbar a.active::after {
  content: "";
  display: block;
  width: 22px;
  height: 3px;
  background: #ffffff;
  margin: 6px auto 0;
  border-radius: 2px;
}


/* Call to Action buttons */

.cta * {
  text-decoration: none;
}

.cta-grid { display:grid; grid-template-columns: 1fr 1fr; gap:12px; }

.cta {
  color: inherit;
  text-decoration: none;
  padding: 14px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform .05s ease, box-shadow .15s ease;
}
.cta-sub { 
  text-align: center;
  font-size: .75rem;
  opacity: .7;
  margin-top: 2px;

}

.cta-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align:center;
  font-weight: 600;
  color: #0b2a4a;
}
.cta:active {
  transform: scale(0.98);
  box-shadow: 0 0px 0px rgba(0,0,0,0);
}

.cta:hover{
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.cta .material-symbols-outlined {
  font-size: 20px;
}


.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 18px 0 10px;
  color: #0b2a4a;
}


.list{
  list-style:none;
  padding:0;
  margin:0;
  display: grid;
  gap: 10px;
}

.item { 
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  padding: 14px 16px;
}

.item-title {
  display: flex;
  gap: 6px;
  align-items: center;

  font-weight: 700;
  margin-bottom: 4px;
  color: #0b2a4a;
}

.item-meta { 
  font-size: 12px;
  opacity: .7;
  margin-bottom: 10px;
}

.rendered-intro {
  margin-top: 8px;
}
.rendered-intro a::after {
  content: "›";
  float: right;
  opacity: 0.5;
}
.item-intro { 
  font-size: 13px;
  opacity: .9;
  line-height: 1.35;

}

.item-link {
  display:block;
  padding: 12px;
  color: inherit;
  text-decoration:none;
}

.item-link:active{ opacity: .85; }

.info-section{
  margin-bottom: 18px;
}

.info-card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  padding: 12px;
}

.info-link{
  display:block;
  color:inherit;
  text-decoration:none;
}

.info-link:active{ opacity: .85; }

/* If the info cards contain item-intro now */
.info-card .item-intro{
  margin-top: 8px;
  line-height: 1.35;
}


.material-symbols-outlined {
  font-size: 18px;
  color: white;
}

/** App Footer **/
.app-footer{
  margin-top: 22px;
  padding: 10px 4px 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(0,0,0,.6);
}

.app-footer strong{
  font-weight: 600;
  color: rgba(0,0,0,.75);
}

.app-footer-links{
  margin: 6px 0 6px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.82rem;
}

.app-footer a{
  color: #0b2a4a;
  text-decoration: none;
  font-weight: 500;
}

.app-footer a:active{
  opacity: .7;
}

/** New css for schedules layout change **/
.rendered-intro a {
  display: block;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(11, 42, 74, 0.04);
  border: 1px solid rgba(11, 42, 74, 0.08);
  color: #0b2a4a;
  text-decoration: none;
  font-weight: 500;
  word-break: break-word;
}

.rendered-intro a:active {
  opacity: 0.85;
}

.rendered-intro a:hover {
  background: rgba(11, 42, 74, 0.08);
}

.rendered-intro p,
.rendered-intro ul,
.rendered-intro ol {
  margin: 0 0 12px 0;
}

.rendered-intro ul,
.rendered-intro ol {
  display: block;
  padding-left: 22px;
}

.rendered-intro li {
  display: list-item;
  margin-bottom: 8px;
}

.rendered-intro h1,
.rendered-intro h2,
.rendered-intro h3,
.rendered-intro h4,
.rendered-intro h5,
.rendered-intro h6 {
  margin: 0 0 10px 0;
  font-size: 1rem;
}

.rendered-intro * {
  max-width: 100%;
}

.item-open-wrap {
  margin-top: 14px;
}

.item-open {
  display: inline-block;
  box-sizing: border-box;
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: #0b2a4a;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.item-open:active {
  transform: scale(0.98);
  box-shadow: 0 0px 0px rgba(0,0,0,0);
}

.item-open:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}




