/* ===== GLOBAL VARIABLES ===== */
:root {
  --top-band-h: 60px; /* adjust for top-band height */
}

/* ===== HTML & BODY ===== */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: black;
}

body {
  background-image: url("white.jpg");
  padding-top: var(--top-band-h); /* push content below fixed top band */
}

/* ===== SAFE BOTTOM AREA ===== */
.safe-bottom {
  height: env(safe-area-inset-bottom);
  background: #000;
}

/* ===== TOP FIXED BAND ===== */
.top-band {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: var(--top-band-h);
  background: black;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* equal spacing */
  align-items: center;
  text-align: center;
  z-index: 9999;
}

.top-icon {
  color: white;
  font-size: 28px;
  text-decoration: none;
  padding: 6px;
}

.top-mail, .top-tele {
  color: white;
  font-size: 30px;
}

.top-icon:active {
  opacity: 0.6;
}

.content {
  margin-top: calc(var(--top-band-h) - 60px); 
  padding: 0;
  

}               
.content1{
  margin-top: calc(var(--top-band-h) - 60px); 
  padding: 0;
    background: black;

}               

/* ===== SUB-BAND ===== */
.sub-band {
  width: 100%;
  background: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 8px;     /* reduced top spacing */
  padding-bottom: 20px; /* keep bottom spacing */
  box-sizing: border-box;
}

.sub-band-icon {
  width: 60px;
  height: auto;
  margin-top:  0; /* reduced icon top spacing */
  margin-bottom: 12px;
  flex-shrink: 0;
}

.sub-band-text {
  color: white;
  text-align: center;
  max-width: 100%;
  height: auto;
  line-height: 1.8em;
  padding-top: 15px;
  padding-bottom: 5px;
  overflow: hidden;
  word-break: keep-all;
}

.sub-band-text p {
  margin: 0;
  margin-top: 10px;
  font-size: 22px;
}
.sub-band-text1 p {
  margin-top: 15px;
    text-align: center;
  line-height: 1.5em;
  font-size: 22px;
    color: white;

}

.sub-band-text p:first-child {
  margin-top: 4px;     /* fine-tuned top */
  margin-bottom: 8px;  /* space between lines */
}
#photo-gallery {
  padding-bottom: 30px;
  background: black;
}
/* ===== SLIDESHOW ===== */
.slideshow {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 15px; /* bottom spacing optional */
}

.slideshow img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ===== CONTACT INFO ===== */
.contact-info {
  width: 95%;
  margin: 20px auto;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

.contact-info p {
  margin-bottom: 50px;
}

.contact-info p:first-child {
  margin-top: 60px;
}

.contact-info p:last-child {
  margin-bottom: 150px;
}

.contact-info .label.en {
  font-weight: 700;
  font-size: 20px;
  color: #0033cc;
  display: block;
}

.contact-info .label.si {
  font-weight: 900;
  font-size: 22px;
  color: #222;
  display: block;
  margin-bottom: 4px;
}

.contact-info .value {
  font-weight: 400;
  font-size: 18px;
  color: #000;
  display: block;
}

#contact-address {
  white-space: pre-line;
}
.contact-row {
  margin-bottom: 12px;
}

.contact-row .label {
  display: block;
  font-weight: 600;
}

.contact-row .label.en {
  font-size: 20px;
}

.contact-row .label.si {
  font-size: 20px;
  color: #555;
}

.contact-row .value {
  display: block;
  margin-top: 4px;
  padding-left: 12px;
}
#contact-website {
  font-size: 13px;   /* reduce as needed: try 12px or 11px */
}

/* ===== IMAGES ===== */
.main-image {
  display: block;
  width: 100%;
  margin-bottom: 35px;   /* 👈 space between photos */
  background: black;     /* 👈 ensures gap stays black */
}
#photo-gallery img:last-child {
  margin-bottom: 0px;    /* reduced gap for last image */
}
.main-image1 {
  display: block;
  width: 100%;
  margin-top: 35px;
}
.small-image {
  display: block;
  width: 60%;
  margin: 30px auto 5px;
  border-radius: 15px;
  border: 2px solid #000;
  box-shadow: 0 8px 30px rgba(0,0,0,0.8);
}

.image-bottom-bar {
  width: 100%;
  background: black;
  height: 1px;
}

/* ===== BUTTONS ===== */
.button-box {
  width: 95%;
  margin: 20px auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 30px;
}
.audio{
  width: 28%;
  padding: 12px 0;
  font-size: 20px !important;
  font-weight: bold;
  border-radius: 18px;
  border: 2px solid blue;
  cursor: pointer;
  font-family: inherit;
  color: #1a4cff !important;
  background: transparent;
}
.audio.active{
  background: #1a4cff;   /* dark / active */
  color: #fff !important;
  border-color: #1a4cff;
}


.action-btn {
  width: 48%;
  padding: 6px 0;
  font-size: 20px !important;
  font-weight: bold;
  border-radius: 18px;
  border: 2px solid blue;
  cursor: pointer;
  font-family: inherit;
  color: #1a4cff !important;
  background: transparent;
}

.action-btn:hover {
  color: #0033cc;
}

/* ===== EVENT BOX ===== */
.event-box {
  width: 90%;
  margin: 30px auto;
  background: transparent;
  border-radius: 10px;
  padding: 5px;
  text-align: center;
}

.event-text h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1;
  font-weight: bold;
  color: brown;
}

.event-text p {
  color: #000;
  font-size: 18px;
  line-height: 1.1;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.event-text .event-note {
  font-size: 26px;
  color: brown;
   line-height: 1.5;
  font-weight: bold;
  margin-top: 10px;
  font-family: Arial, sans-serif;
}
.event-note1 {
  font-size: 20px;
  color: brown;
  font-weight: bold;
  margin-top: 10px;
  line-height: 1.2;
  font-family: Arial, sans-serif;
}


/* ===== ABBOT INFO ===== */
.info-box {
  width: 95%;
  margin: 15px auto;
  padding: 10px;
  background: transparent;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid #000;
}

.info-box p {
  font-size: 22px !important;
  line-height: 1.3;
}

/* ===== TEXT BUTTON BOX ===== */
.text-button-box {
  margin: 20px  0  50px 0;
}

.text-button-box a:last-child {
  font-size: 22px;
  padding: 15px 0 10px 50px;
}

/* ===== ICON LINK ===== */
.icon-link {
  display: block;
  color: #1a4cff;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 0 10px 50px;
  position: relative;
  cursor: pointer;
}

.icon-link::before {
  content: attr(data-icon);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
}

.icon-link:hover {
  text-decoration: underline;
  color: #0033cc;
}




/* ===== FOOTER ===== */
footer {
  background: #000;
  padding: 10px 0;
  margin-top: auto;
  width: 100%;
}

.footer-content {
  color: #fff;
  font-size: 16px;
  align-self: stretch;
}

/* ===== MOBILE FIRST ===== */
@media (max-width: 600px) {
  .text-content {
    padding: 10px;
  }

  .action-btn {
    width: 100%;
    min-width: unset;
  }

  #temple-text {
    font-family: "Noto Serif Sinhala", "Iskoola Pota", serif;
    font-size: 22px;
    line-height: 1.2;
    color: #222;
  }

  #temple-text p {
    margin-bottom: 14px;
  }

  #abbot-info {
    font-family: "Noto Serif Sinhala", "Iskoola Pota", serif;
    font-size: 22px;
    line-height: 1.2;
    color: #222;
    margin-top: 8px;
  }
.safe-bottom {
    height: 0px; /* no extra space */
}
  #history-title {
    font-family: "Noto Serif Sinhala", "Iskoola Pota", serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: left;
    color: #3a2f1c;
  }

  .footer-content {
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
  }
}









