body { 
  margin: 0;
  font-family: "Calibri Light", Arial, sans-serif;
  background-image: url("https://www.springdalespusa.com/images/diagonal-noise.png");
  color: #181818;
}

h1, h3, h4, h5, h6 {
  font-weight:500;
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 10px 0;
  margin-top: 10px;
  margin-left: 10px;
  font-size: 20px;
  color: #181818;
  text-decoration: none;
  text-transform:uppercase;
}
h2 {
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight:400;
  margin: 10px 0;
  margin-top: 10px;
  margin-left: 10px;
  font-size: 18px;
  color: #181818;
  text-decoration: none;
  text-transform:uppercase;
}

td {
  font-size: 20px;
}

a {
  color: #181818;
}

.syllabus {
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.syllabus h4 {
  font-family: Arial, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: normal;
}

.bframe {
  padding: 1px;
  border: 1px solid #021a40;
}

.name {
  font-family: Arial, sans-serif;
  font-size: 30px;
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.7);
  line-height: 1.5;
}

.add {
  margin-left: 2px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.7);
  line-height: 1.5;
}

.tdbgIndex {
  background-repeat: repeat-y;
  background-position: right;
  background-color: #FFFFFF;
}

.tdbg {
  background-color: #FFFFFF;
}

.bg {
  background-color: #921618;
}

p {
  margin-left: 10px;
  margin-right: 20px;
  font-size: 20px;
}

.frame {
  padding: 1px;
  border: 1px solid #021a40;
  background-color: #ff0;
  max-width: 90% !important;
  height: auto;
  display: block;
}

.img {
  padding: 1px;
  border: 1px solid #021a40;
  background-color: #ff0;
  margin-right: 20px;
}

.counter {
  font-style: italic;
  font-size: 14px;
  color: #FFFFFF;
}

.footer {
  background-image: url("images/ftbg.jpg");
  background-repeat: repeat-x;
  background-color: #4C5457;
  font-size: 14px;
}

.footer h1 {
  margin-left: 10px;
  font-size: 17px;
  color: #FFFFFF;
  font-style: normal;
  text-decoration: underline;
  line-height: 1.2; /* changed from 0 to prevent text cutoff */
}

.footer a {
  color: #FFFFFF;
  font-style: normal;
  text-decoration: none;
}

hr {
  width: 400px;
}

.note {
  color: red;
  font-weight: bold;
}

/* Style for nursery admission menu */

    .containerAd {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
      max-width: 1000px;
      margin: 0 auto;
      padding: 20px;
    }

    @media (min-width: 768px) {
      .containerAd {
        grid-template-columns: 1fr 1fr;
      }
    }

    .card {
      background: #fff;
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      text-align: left;
    }

    .card h2 {
      font-size: 1.2rem;
      margin: 0;
    }

    .card .location {
      font-size: 0.9rem;
      color: #555;
      margin-bottom: 15px;
    }

    .card a {
      display: block;
      background: #921618;
      color: #fff;
      padding: 10px;
      margin: 8px 0;
      text-decoration: none;
      border-radius: 6px;
      text-align: center;
      transition: background 0.3s;
      font-size: 0.95rem;
      font-weight: bold;
    }

    .card a:hover {
      background: #000;
    }

/* Box code for index page */
 .cards_index {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
      justify-content: center;
    }

    .card_index {
      text-decoration: none;
      background: #fff;
      border-radius: 12px;
      padding: 20px;

      transition: transform 0.2s ease, box-shadow 0.2s ease;
      display: block;
             border-width: thin;
             border-style: dotted dashed;
    }

    .bnh1 {
      font-size: 1.4rem;
      font-weight: bold;
      color: #222;
      display: block;
    }

    .bnh2 {
      font-size: 1.1rem;
      font-weight: 600;
      color: #555;
      display: block;
      margin-bottom: 8px;
    }

    .txt {
      font-size: 0.95rem;
      color: #666;
      line-height: 1.5;
    }

    /* Optional alternating background for variation */
    .box1 {
      background: #fff7f0;
    }

    .box2 {
      background: #f0f4ff;
    }

    /* Responsive adjustments */
    @media (max-width: 480px) {
      .bnh1 { font-size: 1.2rem; }
      .bnh2 { font-size: 1rem; }
      .txt { font-size: 0.9rem; }
    }

.principal-img {
  position: relative;
  left: 0;
  top: 0;
  margin: 20px 30px 10px 10px;
  width: 100%;
  max-width: 327px;
  height: auto;
  float: left;
  border: 1px solid #555;
}

.quote {
  max-width: 600px;
  text-align: right;
  font-weight: bold;
  font-style: italic;
  font-size: 13pt;
}

.caption2 {
  width: 100%;
  padding: 20px;
  border: thin dotted #990000;
  border-right-style: dashed;
  border-left-style: dashed;
  color: #000000;
  font-style: normal;
  line-height: 1.2;
}

.caption2 li {
  font-style: italic;
}

.callout {
  position: fixed;
  bottom: 35px;
  right: 20px;
  margin-left: 20px;
  max-width: 800px;
}

.callout-header {
  padding: 15px 15px;
  background: #555;
  font-size: 22px;
  color: white;
}

.callout-text {
  font-size: 18px;
}

.callout-container {
  padding: 10px 15px;
  background-color: #ccc;
  color: black;
}

.closebtn {
  position: absolute;
  top: 5px;
  right: 15px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.closebtn:hover {
  color: lightgrey;
}