@import url("https://fonts.googleapis.com/css2?family=Sofia+Sans:ital,wght@0,1..1000;1,1..1000&display=swap");

:root {
  --violet-blue-crayola: #77807c;
  --white: #09152aa2;
  --charcoal: #09152a;
  --raisin-black: rgb(74, 83, 97);
  --light-gray: hsla(0, 0%, 79%, 1);
  --blue-crayola: hsla(219, 72%, 56%, 1);

  /* spacing */
  --section-padding: 90px;
}

/* #RESET */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {
  list-style: none;
}

a,
img,
span,
input,
button,
ion-icon {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  height: auto;
}

input,
button {
  background: none;
  border: none;
  font: inherit;
}

input {
  width: 100%;
}

button {
  cursor: pointer;
}

ion-icon {
  pointer-events: none;
}

address {
  font-style: normal;
}

html {
  font-family: var(--ff-manrope);
  font-size: 10px;
  scroll-behavior: smooth;
}

#schoollogo {
  display: flex;
  justify-content: center;
  align-items: center;
}

#schoollogo img {
  width: 80px;
  height: 64px;
}

#schoollogo p {
  font-size: 35px;
  line-height: 20px;
  color: #65434e;
  font-weight: 900;
  text-transform: uppercase;
}

.logoo > h2 {
  font-size: 18px;
}

body {
  font-size: 1.6rem;
  line-height: 1.7;
  font-family: "Sofia Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: auto;
  font-style: normal;
}

body.nav-active {
  overflow: hidden;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: hsl(0, 0%, 98%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 80%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 70%);
}

/* transition */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* Fade-in from left */
.fade-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-left.show {
  opacity: 1;
  transform: translateX(0);
}

/* Fade-in from right */
.fade-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-right.show {
  opacity: 1;
  transform: translateX(0);
}

.latestupdate {
  padding: 15px 40px;
  font-weight: 900;
  font-size: 20px;
  background: rgb(236, 236, 255);
  color: #000000e1;
}

body.nav-active {
  overflow: hidden;
}

/* #REUSED STYLE */
.contain {
  padding-inline: 16px;
}

.section {
  /* padding-block: 0; */
  padding-top: 40px;
}

.h1,
.h2,
.h3,
.h4,
.h5 {
  /* color: var(--charcoal); */
  font-weight: var(--fw-700);
  line-height: 1.3;
}

/* .h1 {
  font-size: var(--fs-1);
}

.h2 {
  font-size: var(--fs-2);
}

.h3 {
  font-size: var(--fs-3);
}

.h4 {
  font-size: var(--fs-4);
}

.h5 {
  font-size: var(--fs-6);
} */

.btn {
  color: var(--white);
  font-size: var(--fs-6);
  font-weight: var(--fw-700);
  border: 2px solid var(--white);
  max-width: max-content;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  transition: 0.5s ease;
  will-change: transform;
}

.btn:is(:hover, :focus-visible) {
  transform: translateY(-4px);
}

.btn-outline:is(:hover, :focus-visible) {
  background-color: var(--white);
  color: var(--charcoal);
}

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

.imagede {
  width: 100%;
  margin-top: 77px;
  height: 550px;
  object-fit: cover;
}

.sectionsubtitle {
  text-transform: uppercase;
  color: #65434e;
  font-weight: var(--fw-800);
  margin-block-end: 16px;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  margin-top: 16px;
  /* background: #fffbdb7d; */
  /* padding: 30px 0; */
  padding: 10px;
}

.gridlist {
  display: grid;
  gap: 25px;
}

.featurebanner {
  width: 100%;
  height: 330px;
  overflow: hidden;
  border-radius: 4px;
}

.width100 {
  width: 100%;
  height: 100%;
  transition: 0.5s ease;
  object-fit: cover;
}

.featurebanner:hover img {
  transform: scale(1.1);
  border: none;
  transition: 0.3s;
}

.aboutbanner {
  width: 100%;
  height: 330px;
  overflow: hidden;
  border-radius: 4px;
}

.aboutbanner:hover img {
  transform: scale(1.1);
  border: none;
  transition: 0.3s;
}

/* HEADER */

.headersec .btn {
  display: none;
}

.headersec {
  position: sticky;
  top: -1px;
  left: 0;
  width: 100%;
  padding-block: 3px;
  z-index: 4;
  background: #fdeaf0;
}

/* .headersec.active {
  background-color: var(--white);
  position: fixed;
  animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(0); }
} */

.headersec .contain {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo-light,
.headersec .logo-dark {
  display: none;
}

.headersec .logo-light,
.logo-dark {
  display: block;
}

.navopenbtn {
  font-size: 3.5rem;
  color: #fff;
}

.navopenbtn {
  color: #65434e;
}

.navbarnavigation {
  position: fixed;
  top: 0;
  left: -300px;
  background-color: var(--raisin-black);
  color: #fff;
  max-width: 300px;
  width: 100%;
  height: 100vh;
  padding: 30px;
  padding-block-end: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  z-index: 2;
  visibility: hidden;
  transition: 0.4s ease;
  border-bottom: 1px solid black;
}

.navbarnavigation.active {
  visibility: visible;
  transform: translateX(300px);
}

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

.navclosebtn {
  background-color: var(--white_a8);
  color: #fff;
  font-size: 2rem;
  padding: 6px;
  border-radius: var(--radius-circle);
  transition: 4s ease;
}

.navclosebtn ion-icon {
  --ionicon-stroke-width: 50px;
}

.navclosebtn:is(:hover, :focus-visible) {
  background-color: var(--white_a12);
}

.navbarlist {
  margin-block-end: auto;
}

.navbarlink {
  font-weight: 700;
  padding-block: 6px;
  text-transform: uppercase;
  line-height: 20px;
}

.contact-link {
  transition: 0.5s ease;
}

.contact-link:is(:hover, :focus-visible) {
  color: var(--violet-blue-crayola);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--raisin-black);
  pointer-events: none;
  opacity: 0;
  transition: 0.5s ease;
}

.overlay.active {
  pointer-events: all;
  opacity: 0.8;
}

.allsection {
  /* background-image: linear-gradient(rgba(0, 0, 0, 0.151), rgba(0, 0, 0, 0.89)), url(../image/slides/Trinity\ School.png); */
  background-color: rgba(255, 255, 255, 0.925);
  min-height: 500px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ********************* About design of home page ******************************** */
.about .contain {
  display: grid;
  gap: 50px;
}

.about .sectiontitle {
  margin-block-end: 35px;
}

.sectiontitle {
  font-size: 20px;
  font-weight: 800;
  color: #333333;
  text-decoration: underline;
  text-decoration-color: #dad5ac7d;
  text-decoration-thickness: 4px;
  text-underline-offset: 2px;
}

.cardtitle {
  font-size: 30px;
  color: #2f2482b0;
}

.accordion-btn {
  display: flex;
  align-items: center;
  gap: 10px;
}

.accordion-btn ion-icon {
  font-size: 1.5rem;
  color: var(--blue-crayola);
  transition: 0.5s ease;
}

.expanded .accordion-btn ion-icon {
  transform: rotate(0.5turn);
}

.accordion-btn .span {
  transition: 0.5s ease;
}

.accordion-btn:is(:hover, :focus-visible) .span,
.accordion-card.expanded .accordion-btn .span {
  color: var(--violet-blue-crayola);
}

.accordion-content {
  padding-inline-start: 24px;
  max-height: 0;
  overflow: hidden;
}

.loadmore {
  padding: 5px;
  border-radius: 30px;
  background: rgb(139, 139, 233);
  width: 150px;
  text-align: center;
  color: #fff;
  margin-top: 10px;
  font-weight: 600;
}

.loadmore:hover {
  background: rgb(65, 65, 231);
  transition: all 0.3s ease;
}

.accordion-card.expanded .accordion-content {
  max-height: max-content;
  padding-block-end: 20px;
}

#setailsection {
  padding-bottom: 60px;
  padding-top: 40px;
  /* background: #fffbdb7d; */
}

#topsection {
  padding-top: 40px;
  /* background: #fffbdb7d; */
}

/* studentinfo */
.thispart {
  background-color: rgb(241, 242, 245);
}

.allcontent {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-top: 100px;
  background: #f5f5ff;
}

.primaryinfo {
  width: 85%;
  margin: 0 auto;
  padding: 10px 20px;
  margin-bottom: 20px;
}

.primarycard {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.primaryimage {
  flex: 1;
  margin-right: 40px;
  overflow: hidden;
  border-radius: 4px;
}

.primaryimage img {
  display: block;
  transition: 0.5s ease;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.primaryimage:hover img {
  transform: scale(1.1);
}

.primarycontain {
  flex: 1;
}

.primarycontain h2 {
  font-size: 30px;
  margin-bottom: 15px;
  color: #333;
  font-weight: 800;
}

.primarycontain p {
  font-size: 18px;
  line-height: 1.5;
  color: #666;
  font-weight: 500;
}

@media screen and (max-width: 1075px) {
  .primaryinfo {
    width: 95%;
  }
}

@media (max-width: 991px) {
  #animright {
    font-size: 15px;
  }
  .swiper {
    width: 100%;
    height: 100%;
  }
}

@media screen and (max-width: 937px) {
  .primaryinfo {
    width: 96%;
  }

  .primarycontain h2 {
    font-size: 22px;
  }

  .primarycontain p {
    font-size: 14px;
  }

  .primarycontain .read-more {
    font-size: 13px;
  }

  .primarycontain h2 {
    font-size: 22px;
    margin-top: 10px;
  }

  .allcontent {
    padding-top: 40px;
  }

  .allcontent h3 {
    padding: 5px 0;
    font-size: 25px;
    margin-top: 0;
  }

  #animright {
    font-size: 15px;
  }
}

@media screen and (max-width: 768px) {
  .allcontent {
    width: 80%;
    margin: 0 auto;
    padding-top: 20px;
  }

  .primaryinfo {
    padding: 0;
  }

  .primarycard {
    padding: 20px;
    flex-direction: column;
  }

  .primaryimage {
    margin-right: 0;
    margin-bottom: 0;
    width: 100%;
  }

  .primaryimage img {
    width: 100%;
  }

  .primarycontain h2 {
    font-size: 22px;
    margin-top: 10px;
  }

  .primarycontain p {
    padding: 0;
    font-size: 16px;
  }

  .primarycontain .read-more {
    font-size: 16px;
  }

  .allcontent h3 {
    padding: 5px 0;
    font-size: 20px;
    margin-top: 0;
  }

  .aboutbanner {
    width: 100%;
    height: 270px;
  }

  .featurebanner {
    width: 100%;
    height: 270px;
  }

  .about .contain {
    gap: 0;
  }
}

@media screen and (max-width: 607px) {
  .allcontent {
    width: 100%;
  }
}

@media screen and (max-width: 525px) {
  #imagewidth {
    width: 100%;
    height: 240px;
  }

  #imagewidth img {
    width: 100%;
    width: 100%;
    object-fit: cover;
  }
}

@media screen and (max-width: 449px) {
  .primarycontain h2 {
    font-size: 18px;
  }

  #imagewidth {
    width: 100%;
    height: 210px;
  }

  #imagewidth img {
    width: 100%;
    width: 100%;
    object-fit: cover;
  }
}

/* studentinfo */

/* ****************  feature design of home page ******************* */
.feature .contain {
  display: grid;
  gap: 50px;
}

.feature .sectiontext {
  margin-block: 25px 30px;
  font-weight: 600;
}

.sectiontext {
  font-size: 18px;
  line-height: 1.5;
  color: #666;
  font-weight: 500;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-card .card-icon {
  background-color: var(--lavender-web);
  font-size: 1.4rem;
  padding: 4px;
  border-radius: var(--radius-circle);
}

.feature-card .card-icon ion-icon {
  --ionicon-stroke-width: 40px;
}

.aboutcontent {
  /* padding: 30px; */
  /* border-radius: 10px; */
  margin: 30px 0;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--white_a70);
  }

  75% {
    box-shadow: 0 0 0 20px transparent;
  }
}

/* PROJECT */

/* .project {
  background-color: #fffbdb7d;
} */

.project :is(.sectionsubtitle, .sectiontitle) {
  text-align: center;
}

.project .sectiontitle {
  margin-block-end: 50px;
}

.shadowfun {
  border: 0px solid black;
  background: #ffffffb9;
  box-shadow: 1px 1px 3px 1px;
  border-radius: 2px;
}

.map {
  position: relative;
  width: 100%;
}

.hoverimg > img {
  opacity: 0.7;
}

.hoverimg > img:hover {
  opacity: 1;
  transition: 0.4s;
}

.projectcard {
  background-color: #ffffffc7;
  border-radius: var(--radius-8);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  height: 100%;
}

.projectcard:hover {
  box-shadow: 1px 1px 8px 1px;
}

.projectcard .cardcontent {
  padding: 10px;
}

.cardcontent {
  height: 10%;
}

.projectcard .cardtitle {
  transition: 0.5s ease;
}

.projectcard .cardtitle:is(:hover, :focus-visible) {
  color: var(--violet-blue-crayola);
}

.projectcard .card-text {
  margin-block: 16px 20px;
}

.card-text {
  font-size: 18px;
  color: #000000cb;
  font-weight: 700;
}

.projectcard .card-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.projectcard .card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--cadet-blue-crayola);
  font-size: var(--fs-8);
}

/* FOOTER */

.footer {
  background-color: #f3e6ea;
  padding-block: 60px 100px;
  color: #79434e;
}

.footerbrand {
  margin-block: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.footerbrand > p {
  font-style: italic;
  width: 50%;
  text-align: center;
}

.footerbrand img {
  width: 200px;
  height: 170px;
}

.sociallist {
  display: flex;
  padding: 4px 4px 4px 0;
}

.sociallist > li {
  margin-right: 7px;
  color: #fff;
}

.footer .sociallist {
  color: var(--white);
}

.footerlist-title {
  margin-block-end: 16px;
}

.footerlink {
  padding-block: 4px;
  transition: 0.5s ease;
  text-align: center;
}

.footerlink:is(:hover, :focus-visible) {
  color: #86d4d4;
  transition: 0.2s;
  width: 100%;
  text-align: center;
}

.ulfooterlink {
  padding: 0 20px;
}
.input-wrapper {
  position: relative;
  margin-block-start: 25px;
}

.input-field {
  background-color: var(--white_a3);
  color: var(--light-gray);
  font-size: var(--fs-7);
  padding: 12px 16px;
  border: 1px solid var(--dark-cornflower-blue_a7);
  border-radius: var(--radius-6);
  box-shadow: var(--shadow-3);
  outline: none;
}

.input-field::placeholder {
  color: inherit;
}

.submit-btn {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border-radius: 0 var(--radius-6) var(--radius-6) 0;
  background-color: var(--violet-blue-crayola);
  color: var(--white);
  padding-inline: 24px;
  font-weight: var(--fw-700);
}

.copyright {
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 2px solid #1311117e;
  background-color: #f3e6ea;
  color: #79434e;
}

.copyright .footertext {
  text-align: center;
  padding: 0 4px;
}

@media (max-width: 425px) {
  .footertext {
    font-size: 13px;
  }
}
@media (max-width: 348px) {
  .footertext {
    font-size: 12px;
  }
}

/* REACH US */

.mapdesigh {
  transition: ease-in-out;
}

.mapdesigh:hover {
  transition: 0.2s;
}

.navbarlist li::after {
  content: "";
  width: 0%;
  height: 4px;
  background: #fff;
  display: block;
  margin: auto;
  border-radius: 5px;
}

.navbarlist li:hover::after {
  width: 100%;
  transition: 0.2s;
}

.footerlisttitle {
  font-size: 23px;
  font-weight: 600;
  text-align: center;
}

/*  #MEDIA QUERIES */

@media (min-width: 575px) {
  .contain {
    max-width: 540px;
    width: 100%;
    margin-inline: auto;
  }

  .projectcard .cardcontent {
    padding: 40px;
  }

  .width100 {
    border-radius: 0;
  }
}

@media (min-width: 470px) {
  .width100 {
    border-radius: 0;
    box-shadow: none;
  }
}

@media (min-width: 767px) {
  :root {
    --section-padding: 120px;
  }

  .contain {
    max-width: 720px;
  }

  .gridlist {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .headersec .btn {
    display: block;
    margin-inline-start: auto;
    padding: 8px 20px;
  }

  .btn {
    background-color: var(--violet-blue-crayola);
    border-color: var(--violet-blue-crayola);
    color: var(--white);
  }

  .service .sectiontitle {
    max-width: 30ch;
    margin-inline: auto;
  }

  .about .contain {
    grid-template-columns: 1fr 0.7fr;
    align-items: center;
  }

  .feature .contain {
    grid-template-columns: 0.7fr 1fr;
    align-items: center;
  }

  .featurebanner {
    order: 1;
  }

  #schoollogo p {
    font-size: 30px;
  }
}
@media (max-width: 990px) {
  #schoollogo img {
    width: 100px !important;
    height: 90px !important;
  }
}

/* @media (max-width: 765px) {
  #schoollogo img {
    width: 110px ;
    height: 100px ;
  }
} */
@media (min-width: 765px) {
  #schoollogo p {
    font-size: 25px;
  }
}

@media (min-width: 461px) {
  #schoollogo p {
    font-size: 19px;
  }
}

@media (max-width: 461px) {
  #schoollogo img {
    width: 140px;
    height: 89px;
  }
  #schoollogo p {
    font-size: 19px;
    font-weight: 700;
  }
}
@media (max-width: 461px) {
  #schoollogo p {
    font-weight: 700;
  }
  #schoollogo img {
    width: 90px;
    height: 85px;
  }
}
@media (min-width: 992px) {
  .contain {
    max-width: 960px;
  }

  /* HEADER */
  .navopenbtn,
  .navbarnavigation > *:not(.navbarlist),
  .overlay {
    display: none;
  }

  .navbarnavigation,
  .navbarnavigation.active {
    all: unset;
    display: block;
    margin-inline: auto 24px;
  }

  .navbarlist {
    display: flex;
    gap: 30px;
  }

  #schoollogo p {
    font-size: 25px;
  }

  .navbarlink {
    color: #fff;
    transition: 0.5s ease;
  }

  .navbarlink:is(:hover, :focus-visible) {
    opacity: 0.7;
  }

  .navbarlink {
    color: #65434e;
  }

  .navbarlink:is(:hover, :focus-visible) {
    opacity: 1;
    color: var(--violet-blue-crayola);
  }

  .headersec .btn {
    margin-inline-start: 0;
  }

  .btn-wrapper {
    justify-content: flex-start;
  }

  .stats-card {
    grid-template-columns: repeat(4, 1fr);
  }

  .project .sectiontitle {
    max-width: 32ch;
    margin-inline: auto;
  }

  .sectionsubtitle {
    font-size: 40px !important;
    /* text-shadow: 0px 4px 4px #fffbdb7d; */
    text-decoration: underline;
    text-decoration-color: #dad5ac7d;
    text-decoration-thickness: 4px;
    text-underline-offset: 2px;
  }

  .cta .contain {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .cta .btn {
    min-width: max-content;
  }

  .cta .sectiontitle {
    max-width: 30ch;
    margin-block-end: 0;
  }

  .footer .gridlist {
    grid-template-columns: repeat(1fr, 1fr, 1fr);
  }

  .sectiontitle {
    font-size: 30px !important;
  }
}

@media (min-width: 1200px) {
  .contain {
    max-width: 1140px;
  }

  .service .gridlist {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats .contain {
    max-width: 70%;
  }

  .stats-card {
    padding: 60px;
  }

  .project .gridlist {
    grid-template-columns: repeat(3, 1fr);
  }

  address {
    padding-inline-end: 100px;
    margin-block-end: 16px;
  }
}

@media (min-width: 1400px) {
  .contain {
    max-width: 1320px;
  }

  .feature-list {
    grid-template-columns: 1fr 1fr;
  }
}
