@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+Sinhala:wght@100..900&display=swap");

:root {
  --main-orange: #e14b03;
  --main-orange-hover: #c63f00;
}

.btn-theme1 {
  background-color: var(--main-orange);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 40px;
  text-align: center;
}

.btn-theme1:hover {
  background-color: var(--main-orange-hover);
  color: white;
}

.topic {
  color: var(--main-orange);
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
}

body {
  font-family: "Noto Serif Sinhala", serif;
  scroll-behavior: smooth;
}

header {
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 10px;
  .navbar {
    margin-left: auto;
    margin-right: auto;
    padding: 0.6rem 1rem;
    position: relative;

    background-color: var(--main-orange);
    border-radius: 40px;

    .navbar-brand {
      display: flex;
      justify-content: center;
      align-items: center;
      img {
        position: absolute;
        left: -5px;
        width: 20%;
      }
    }

    .navbar-collapse {
      padding-top: 1rem;
    }

    .navbar-nav {
      justify-content: end;
      .nav-item {
        .nav-link {
          color: white;
          font-size: 0.9rem;
        }
      }
    }
  }
}

.hero-sec {
  /* margin-top: -5.5rem; */
  background-image: url("img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 1rem;
  /* height: 110vh; */
  position: relative;
  padding-bottom: 5rem;

  .hero-intro {
    margin: 1.8rem 1rem;
    background-image: radial-gradient(
      circle,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 1) 49%,
      rgba(0, 0, 0, 1) 64%
    );
    border: 2px solid white;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 1rem;
    padding-top: 3rem;

    .detail-cont {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      .middle-text {
        margin-bottom: -5rem;
        text-align: center;
        color: white;
        margin-bottom: 2rem;

        h1 {
          font-size: 2rem;
          margin-bottom: 1rem;
        }

        h3 {
          font-size: 1.2rem;
        }
      }

      .logo-cont {
        position: absolute;
        bottom: -5rem;
        left: 8.5rem;
        margin-left: auto;
        margin-right: auto;

        img {
          width: 110%;
        }
      }

      .main-theros {
        .thero-col {
          text-align: center;
          display: flex;
          justify-content: center;
          align-items: center;

          .thero-cont {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 1rem;
            text-align: center;
            color: white;

            .name-cont {
              margin-top: -6rem;
              padding-top: 2rem;
              background-image: linear-gradient(to top, black 70%, transparent);
            }
          }
        }
      }
    }
  }

  .hero-banner {
    /* margin-top: 12rem; */
    position: absolute;
    bottom: -5rem;

    z-index: 2;
    height: 500px;
    border-radius: 40px;
    border: 2px solid white;
    background-image: url("img/hero-banner.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    padding: 1rem;

    color: white;
    text-align: center;
  }
}

.home-page.hero-sec {
  padding-bottom: 30rem;
}

.breadcrumb-sec {
  ol {
    padding-top: 2rem;
    display: flex;
    gap: 0.5rem;
    span {
      a {
        text-decoration: none;
        color: black;
      }
    }

    .breadcrumb-item.active {
      color: var(--main-orange);
    }
  }
}

.about-sec {
  padding: 5rem 0;
  /* height: 100%; */

  background-image: url("img/bo-leaves.png");
  background-size: 85%;
  background-repeat: no-repeat;
  background-position: top right;

  .about-cont {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    min-height: 30vh;

    .row {
      /* height: 100%; */
      justify-content: center;
      align-items: center;
    }

    h3 {
      margin-bottom: 1rem;
    }
  }
}

.home-page.about-sec {
  padding-top: 10rem;
}

.news-sec {
  padding: 2rem 0;
  background-color: #dddddd;
}
.news-container {
  text-align: center;
  .news-cont {
    text-decoration: none;
    color: black;
    padding: 1rem;
    h5 {
      color: var(--main-orange);
      margin-top: 0.5rem;
    }
  }
}

.namawaliya-sec {
  background-image: url("img/namawaliya-bg.png");
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  padding-top: 2rem;
  padding-bottom: 5rem;

  .details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    p {
      width: 100%;
      text-align: center;
    }
  }
  width: 100%;
}

.bottom-navigation {
  padding: 5rem 0;

  a {
    text-decoration: none;
    color: black;
    .nav-cont {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 1rem;
    }
  }
}

footer {
  padding: 1rem;
  background-color: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  color: white;

  .nav-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 1rem;
    list-style: none;

    padding-left: 0;
    li {
      a {
        text-decoration: none;
        color: white;
      }
    }
  }

  .middle-cont {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

@media (min-width: 768px) {
  header {
    .navbar {
      border-radius: 40px;
      margin-top: 2rem;

      .navbar-collapse {
        padding-top: 0;
      }

      .navbar-brand {
        img {
          position: relative;
          width: 28px;
        }
      }
    }
  }
  .hero-sec {
    padding-top: 2rem;
    .hero-intro {
      height: 300px;
      .detail-cont {
        position: absolute;
        top: 30%;

        .logo-cont {
          bottom: -8rem;
          left: 10rem;

          img {
            width: 150%;
          }
        }
      }
    }
    .hero-banner {
      left: 10%;
      transform: translateX(-6%);
      padding: 1rem;
      bottom: -10rem;
    }
  }

  .home-page.hero-sec {
    padding-bottom: 30rem;

    .hero-intro {
      height: 400px;
    }
  }

  .about-sec {
    padding-bottom: 2rem;
  }
  .namawaliya-sec {
    padding-top: 5rem;
    padding-bottom: 10rem;
    .details {
      p {
        width: 50%;
      }
    }
  }

  footer {
    align-items: center;

    .nav-links {
      flex-direction: row;
    }
  }
}

@media (min-width: 992px) {
  header {
    .navbar {
      width: 60%;
    }
  }
  .hero-sec {
    .hero-intro {
      margin: 1.8rem 3rem;

      .detail-cont {
        .thero-col {
          .logo {
            width: 100%;
          }
        }
      }
    }
    .hero-banner {
      left: 40%;
      transform: translateX(-35%);
      padding: 1rem 10rem;
    }
  }

  .about-sec {
    background-size: 35%;
    .about-cont {
      .row {
        height: 100%;
      }
    }
  }
}
