body{
  margin: 0;
  background: #f6f7fb;
  color: #111;
  line-height: 1.6;
  margin: 0;
  background:
    repeating-linear-gradient(45deg,
      rgba(0,0,0,0.015) 0px,
      rgba(0,0,0,0.015) 6px,
      rgba(255,255,255,0) 6px,
      rgba(255,255,255,0) 12px
    ),
    repeating-linear-gradient(-45deg,
      rgba(0,0,0,0.01) 0px,
      rgba(0,0,0,0.01) 6px,
      rgba(255,255,255,0) 6px,
      rgba(255,255,255,0) 12px
    ),
    #f6f7fb;
}

html {
  scroll-behavior: smooth;
}

header{
  position: sticky;
  top: 0;
  background: #fff;
   margin-left: -12px;
  margin-right: -12px;
  padding: 0 12px;      /* keeps logo/menu not glued to edge */
  border-bottom: 1px solid #f0f0f0;
  z-index: 20;
}

.container {
  max-width: 420px;
  margin: 0 auto;
  padding: 0 12px;
  font-family: sans-serif;
  border-radius: 16px;
  padding: 0 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  background: #ffffff;
}

main section{
  padding: 18px 0;
  border-top: 1px solid #f0f0f0;
  margin-left: -14px;
  margin-right: -14px;
  padding-left: 14px;
  padding-right: 14px;
}

main section:first-child{ border-top: 0; }
main section:nth-of-type(even){
  background: #f1f5f9;  /* soft cool tint */
}

main section:nth-of-type(odd){
  background: #ffffff;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ba-gc{
  display: flex;
  gap: 12px;
  padding: 12px 0;
}

.logo-box{
  flex: 1;
  height: 100px;
  border: 1px solid #eee;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.ba-gc-img{
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.gcspf-logo{
  transform: scale(1.8);
}


h2{
  font-size: 1.35rem;
  margin: 0 0 10px;
}

p{
  margin: 0 0 12px;
}

.home-icon {
  height: 40px;
  width: auto;
  display: block;
}

.menu-btn {
  list-style: none;
  cursor: pointer;
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.menu-btn::-webkit-details-marker {
  display: none;
}

.menu {
  position: relative;
}

.menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 8px;
  width: 220px;
}
.menu nav { display: none; }
.menu[open] nav { display: block; }
.menu nav { z-index: 10; }

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

.menu a {
  text-decoration: none;
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
}

.about-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin: 10px 0 12px;
}

.collapse-menu {
  cursor: pointer;
  padding: 8px 0; /* just breathing room */
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  list-style: none;
  font-weight: 700;
}


.collapse-menu h3 {
  margin: 0;
  font-size: 1.05rem;
}

.collapse-menu:hover{
  opacity: 0.8;
}

.about-me ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

details{
  margin-top: 10px;
  padding-top: 10px;
}

details ul{
  margin: 10px 0 0;
  padding-left: 18px;
}

.topics-table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.95rem;
}

.topics-table th,
.topics-table td{
  border: 1px solid #e6e6e6;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.topics-title{
  text-align: center;
  font-weight: 700;
}


.chapter-links{
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-top: 12px;
}

.chapter-card{
  padding: 12px 0;
  border: 1px solid black;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  text-decoration: none;
  border-radius: 12px;
}


.centre-card{
  width: 100%;
  height: auto;
  display: block;
  padding-top: 10px;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
  background: #fff;
}

footer {
  background: #0f172a; /* deep navy */
  color: #e5e7eb;
  margin-top: 60px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 16px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

footer h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.footer-text{
  margin: 0;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 42ch;
}

footer h4{
   margin: 0 0 10px;
  font-size: 1rem;
}

.footer-links,
.footer-meta {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-meta li {
  margin: 10px 0;
}

footer a {
  color: #e5e7eb;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(229, 231, 235, 0.12);
  padding: 14px 16px;
  text-align: center;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.footer-wa{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e5e7eb;
  text-decoration: none;
}

.footer-wa i{
  font-size: 1.2rem;
}

.footer-wa:hover{
  text-decoration: underline;
}

.question-answers{
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
}


