@import url('body.css');

/* Carousel */
.bgcarousel {
  background-image: url('../Images/elephants-national-park-resized.jpg');
 /* background-image:url('../Images/IMG_0356.JPG');*/
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  overflow: hidden;
}

.bg-block {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 30px 0 0 30px;
  margin-top: 470px;
  padding-block: 20px;
  margin-bottom: 150px;
}

h1, .info-txt, h2{
	color:#222121;
}
.text-end h2 {
  font-size: 52px;
  line-height: 1;
}

.text-end h1 {
  font-size: 70px;
  font-family: "D-DIN Bold";
}

/* Introduction */
.bgintro {
  background-image: linear-gradient(to right, rgba(255,255,255,1), transparent), url('../Images/IMG_0482-resized2.jpg');
  
 /* background-image: linear-gradient(to right, rgba(255,255,255,1), transparent), url('../Images/IMG_0482.jpg');*/
  background-size: cover;
  background-position: center;
  min-height: 59vh;
}

.contentintro {
  padding-top: 60px;
  padding-bottom: 40px;
}

.textintro h2 {
  font-size: 44px;
  color: rgb(201, 0, 0);
  line-height: 20px;
}

.textintro h1 {
  font-size: 55px;
  font-family: "D-DIN Bold";
}

.textintro p {
  font-size: 18px;
  line-height: 35px
}

button {
  border-radius: 30px;
  width: 130px;
  height: 30px;
  border: none;
}

.red-button {
  background: #938e8e;
  color: white;
  font-size: 20px;
}

/* Grade */
.box {
  transition: opacity 0.5s;
}

.box:hover {
  opacity: 0.8;
}

.box:hover h5 {
  color: #8b0404;
  transition: color 0.5s;
}

.header-img {
  background-color: rgba(255, 255, 255, 0.8);
}

.box img {
  object-fit: cover;
}

figcaption h5 {
  font-family: "D-DIN Bold";
  font-size: 30px;
}

/* Information */
.bginfo {
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgb(255, 255, 255)), url("Asset/Paper\ crumble\ background.jpg");
  background-attachment: fixed;
}

.bginfo .mx-1 .col-md-4 {
  margin-top: 50px;
}

.brown-line {
  height: 15px;
  width: 100%;
  background-color: #d0a03f;
}

/* Hover Card */
.bx {
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.5);
}

.image-container {
  position: relative;
  width: 100%;
  padding-top: 70%;
}

.bx img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay {
  height: 65%;
  width: 100%;
  background: linear-gradient(transparent, #ffffff 85%);
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: start;
  justify-content: center;
  flex-direction: column;
  font-size: 14px;
  transition: height 1s;
}

.overlay h1 {
  font-family: "D-DIN Bold";
  color: #8d0100;
  margin-bottom: 0;
  margin-left: 35px;
  margin-top: 100%;
  font-size: 60px;
}

p.subjudul {
  font-family: "D-DIN Bold";
  font-size: 20px;
  margin-left: 35px;
}

p.deskripsi {
  font-size: 22px;
  font-weight: 500;
  line-height: 25px;
  padding: 60px 50px 90px 50px;
}

.bx:hover .overlay {
  height: 265%;
}

/* Mighty Macan */
.mighty-macan {
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.5)), url('Images/Sports\ Centre.jpg');
  background-size: cover;
}

.macan {
  max-width: 100%;
}

.container .desc {
  font-size: 25px;
  line-height: 30px;
}

/* Community Voice */
.community-voice {
  background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8)), url("Images/ComVoice.jpg");
  background-size: cover;
}

.bgtesti {
  background-image: url(Asset/Paper%20crumble%20background.jpg);
  border-radius: 25px;
}

button {
  border-radius: 30px;
  width: 130px;
  height: 40px;
  border: none;
  cursor: pointer;
}

.slideshadow {
  box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

.slideimage {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slidetitle {
  font-family: "D-DIN Bold";
  font-size: 20px;
  margin-bottom: 0;
}

.slidetext, .slidedesc {
  font-size: 18px;
  margin-bottom: 0;
}

.main-banner a {
  text-decoration: none;
}

.main-banner .slick-slide {
  margin: 50px 50px;
  opacity: 0.3;
}

.main-banner .slick-slide img {
  border-radius: 25px 0 0 25px;
}

.main-banner .slick-current {
  opacity: 1;
  transition: transform 0.1s ease;
  transform: scale(1.2);
}

.main-banner .slick-prev:before,
.main-banner .slick-next:before {
  color: rgb(162, 162, 162);
  font-size: 50px;
  width: 50%;
  height: 50%;
}

.main-banner .slick-next {
  right: 10%;
}

.main-banner .slick-prev {
  left: 10%;
  z-index: 1;
}

/* Social Media */
.insta img {
  box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
}

.post {
  background-color: white;
  box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
  margin: 0;
  padding-bottom: 13px;
  border-radius: 25px;
}

.post img {
  border-radius: 25px 25px 0 0;
}

figcaption p {
  margin-top: 8px;
  margin-bottom: 0;
  line-height: 20px;
}

/* News */
.news figure {
    cursor: pointer;
    transition: transform .2s;
    height: 246px;
    display: flex;
    flex-direction: column;
}

.news figure a, .card-text {
  text-decoration: none;
  overflow: hidden;
}

.news figure:hover {
  transform: scale(1.02) !important;
}

.news figure img {
  aspect-ratio: 16/9; 
  object-fit: cover;
}

.news figcaption {
  color: #424242;
}

.card-title {
  font-family: "Poppins";
}

.news figure:hover .card-title {
  color: #8d0100;
}

.card-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  line-height: 21px;
}

/* Sponsor */
.bg-sponsor{
  background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255,255,255, 0.9)), url('Images/Sponsor.jpg');
  background-size: cover;
  background-position: center;
}

@keyframes scroll {
  0% {
      transform: translateX(0);
 }
  100% {
      transform: translateX(calc(-300px * 7));
 }
}

@keyframes scroll2 {
  0% {
      transform: translateX(calc(-300px * 7));
 }
  100% {
      transform: translateX(0);
 }
}

.sponsor-slider{
  overflow: hidden;
}

.slide-track, .slide-track2{
  display: flex;
  width: calc(300px * 18);
  animation: scroll 100s linear infinite;
}

.slide-track2 {
  animation: scroll2 100s linear infinite;
}

.slide{
  height: 130px;
  display: flex;
  align-items: center;
  padding: 15px;
}

.slide img {
  height: 100%;
}

@media (max-width: 1366px) {
  /* Hover */
  .overlay h1 {
    margin-top: 420px;
  }

  /* Social Media */
  .col-lg {
    margin-left: 0 !important;
  }

  figcaption p {
    font-size: 14px;
    line-height: 20px;
  }
}

@media (max-width: 1280px) {
  /* Carousel */
  .text-end h2 {
    font-size: 3rem;
  }
  .text-end h1 {
    font-size: 4rem;
  }
}

@media (max-width: 1024px) {
  /* Carousel */
  .text-end h2 {
    font-size: 2.2rem;
  }
  .text-end h1 {
    font-size: 3rem;
  }
  .bg-block {
    margin-top: 600px;
  }

  /* Introduction */
  .bgintro {
    /*background-image: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0.4)), url(Images/Sports\ Field.jpg);*/
    min-height: auto;
  }
  
  .textintro h2 {
    font-size: 34px;
  }
  
  .textintro h1 {
    font-size: 43px;
  }
  
  .textintro p {
    font-size: 20px;
    line-height: 25px
  }
  
  button {
    border-radius: 15px;
    width: 100px;
  }
  
  .red-button {
    font-size: 15px;
  }

  /* Grade */
  figcaption h5 {
    font-size: 20px;
  }

  /* Information */
  .col-lg-4 h1 {
    padding-left: 0 !important;
  }

  /* Hover */
  p.deskripsi {
    display: none;
  }

  .overlay h1 {
    margin-top: 1px;
    margin-left: 30px;
  }

  p.subjudul {
    font-size: 18px;
    margin-left: 30px;
  }

  /* Community Voices */
  .slideimage {
    height: 100%;
    object-fit: cover;
  }

  /* Social Media */
  .col-lg {
    margin-left: 0 !important;
  }

  figcaption p {
    font-size: 11px;
    line-height: 15px;
  }
}

@media (max-width: 912px) {
  /* Navbar */
  .navbar {
    background-color: #f8f8f8;
  }

  .navbar-brand img {
    width: 120px;
  }

  .navbar .container {
    padding-bottom: 3px;
  }

  .navbar .col-auto {
    width: 100%;
  }

  .navbar .nav-item {
    font-size: 14px;
    line-height: 12px;
    margin-bottom: 10px;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-bar {
    opacity: 1;
    border-bottom: outset;
  }

  .search-bar-container {
    width: auto;
  }

  .search {
    display: none;
  }

  .dropdown-menu {
    position: static;
    float: none;
    width: auto;
    margin-top: 10px;
  }

  .dropdown-toggle::after {
    display: inline-block;
    margin-left: 5px;
  }

  /* Carousel */
  .text-end h2 {
    font-size: 2.1rem;
  }
  
  .text-end h1 {
    font-size: 2.8rem;
  }

  /* Hover card */
  .bx {
    border-radius: 15px;
  }

  .overlay h1 {
    font-size: 40px;
    margin-top: 35px;
    margin-left: 12px;
  }

  p.subjudul {
    font-size: 13px;
    margin-left: 12px;
  }

  /* Community Voices */
  .slidetitle {
    font-size: 20px;
    display: flex;
    justify-content: center;
  }

  .slidedesc {
    font-size: 14px;
    display: flex;
    justify-content: center;
  }

  .slidetext {
    font-size: 10px;
    line-height: 12px;
  }

  .slick-next, .slick-prev {
    width: 30px;
    height: 30px;
  }

  .slick-next:before, .slick-prev:before {
    font-size: 30px;
  }

  .main-banner .slick-next {
    right: 5%;
  }

  .main-banner .slick-prev {
    left: 5%;
  }

  /* Social Media */
  figcaption p {
    font-size: 25px;
    line-height: 35px;
  }
}

@media (max-width: 853px) {
    /* Carousel */
    .text-end h2 {
      font-size: 1.75rem;
    }
    .text-end h1 {
      font-size: 2.4rem;
    }
	  .news figure {
    cursor: pointer;
    transition: transform .2s;
    height: 480px;
    display: flex;
    flex-direction: column;
}

}

@media (max-width: 768px) {
  /* Hover card */
  .overlay h1 {
    font-size: 30px;
    margin-top: 40px;
  }

  p.subjudul {
    font-size: 12px;
  }

  /* Community Voices */
  .slidetitle {
    font-size: 18px;
  }

  .slidedesc {
    font-size: 12px;
  }
}

@media (max-width: 540px) {
  /* Carousel */
  .bgcarousel {
    min-height: auto;
  }
  
  .bgintro {
  background-image: unset !important;
  background-size: cover;
  background-position: center;
  min-height: 59vh;
}

  .bg-block {
    margin-top: 420px;
    margin-left: 12px;
  }

  /* Community Voices */
  .community-voice {
    padding: 20px;
  }

  .slidetitle {
    font-size: 13px;
  }

  .slidedesc {
    font-size: 12px;
  }

  .slick-slide img{
    border-radius: 20px 20px 0 0 !important;
  }

  .col-md-8 {
    padding: 10px !important;
  }

  .slick-slide {
    margin: 15px 0;
  }

  /* Social Media */
  .social-media .ms-5 {
    margin-left: 0 !important;
  }

  figcaption p {
    font-size: 12.5px;
    line-height: 18px;
  }

  /* Footer */
  .bg-footer {
    overflow-x: hidden;
  }

  .title-footer {
    text-align: center;
  }

  .bg-footer .col-md-3 p {
    display: block;
    text-align: center;
  }

  .school-partnership-row .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .text-footer {
    text-align: center;
  }

  .footer-link {
    justify-content: center;
  }
  
  .news figure {
    cursor: pointer;
    transition: transform .2s;
    height: 300px;
    display: flex;
    flex-direction: column;
}

}

@media (max-width: 430px) {
  /* Carousel */
  .text-end h2 {
    font-size: 1.8rem;
  }

  .text-end h1 {
    font-size: 2.5rem;
  }

  .text-end {
    padding: 15px;
  }

  /* Introduction */
  .bgintro {
   /* background-image: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0.6)), url('Images/Sports\ Field.jpg');*/
    min-height: auto;
  }

  .textintro h2 {
    font-size: 23px;
  }
  
  .textintro h1 {
    font-size: 30px;
  }
  
  .textintro p {
    font-size: 12px;
    line-height: 16px;
    text-shadow:1px 1px white;
  }
  
  button {
    border-radius: 15px;
    width: 70px;
    height: 25px;
  }
  
  .red-button {
    font-size: 10px;
  }

  /* Grade */
  .EY{
    padding-bottom: 5px !important;
  }

  .ES{
    padding: 0 !important;
    padding-bottom: 5px !important;
  }

  figcaption h5 {
    font-size: 15px;
  }

  /* Information */
  .bginfo .col-5 h1 {
    font-size: 20px;
    margin-bottom: 2px;
    padding-left: 5px !important;
  }

  .brown-line {
    height: 10px;
  }

  /* Hover card */
  .overlay h1 {
    font-size: 25px;
  }

  /* Community Voices */
  .main-banner .slick-slide {
    margin: 40px 23px 40px 23px;
  }

  /* Sponsor */
  .bg-sponsor .text-center {
    padding-bottom: 20px;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-250px * 7));
    }
  }
  @keyframes scroll2 {
    0% {
      transform: translateX(calc(-250px * 7));
    }
    100% {
      transform: translateX(0);
    }
  }
  .slide {
    height: 80px;
    padding: 5px;
  }
}

@media (max-width: 414px) {
  /* Carousel */
  .text-end h2 {
    font-size: 1.75rem;
  }

  .text-end h1 {
    font-size: 2.4rem;
  }

  /* Hover Card */
  .bginfo .mx-1 .col-md-4 {
    margin-top: 30px;
  }

  .overlay h1 {
    margin-top: 10px;
  }

  p.subjudul {
    font-size: 10.5px;
  }

  /* Community Voices */
  .main-banner .slick-slide {
    margin: 70px;
  }

  /* Social Media */
  figcaption p {
    font-size: 11px;
    line-height: 14px;
  }

  figcaption .mx-3 {
    margin-right: 12px !important;
    margin-left: 12px !important;
  }
}

@media (max-width: 393px) {
  /* Carousel */
  .bgcarousel {
    min-height: 100vh;
  }

  .text-end h2 {
    font-size: 1.5rem;
  }

  .text-end h1 {
    font-size: 2.1rem;
  }

  /* Hover Card */
  .overlay h1 {
    margin-top: 25px;
  }

  /* Social Media */
  figcaption p {
    font-size: 10px;
  }
}

@media (max-width: 375px) {
  /* Carousel */
  .bg-block {
    margin-top: 390px;
    margin-bottom: 100px;
  }

  /* Hover Card */
  .overlay {
    height: 60%;
  }

  .overlay h1 {
    margin-top: 20px;
  }

  p.subjudul {
    font-size: 9px;
  }

  /* Social Media */
  figcaption p {
    font-size: 9px;
    line-height: 12px;
  }
}

@media (max-width: 344px) {
  /* Carousel */
  .text-end h2 {
    font-size: 1.4rem;
  }

  .text-end h1 {
    font-size: 1.9rem;
  }

  /* Hover Card */
  p.subjudul {
    font-size: 8px;
  }
  
  /* Social Media */
  figcaption p {
    font-size: 8px;
  }
}