@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --primary-color: #f9c615;
  --primaary-color-1: #400246 ;
  --secondary-color: #d00e0e;
  --secondary-color-1:#ffd747;
  --secondary-color-2:#38023d;
  --background-color-1: #ffc400;
  --background-color-2: #e8e8e8;
  --background-color-3: #fefaf2;
  --dark-color:black ;
  --extra-light: #dfdfdf;
  --white: #ffffff;
  --max-width: 1200px;
}

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

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--white);
  line-height: 3.25rem;
  text-align: center;
}

.section__header1{
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--dark-color);
  line-height: 3.25rem;
  text-align: center;
}

.service .section__header1{
  color: #55075c;
}

.section__description1 {
  font-size: 1rem;
  color: var(--dark-color);
  line-height: 1.75rem;
  text-align: center;
}

.section__description{
  font-size: 1rem;
  color: var(--extra-light);
  line-height: 1.75rem;
  text-align: center;
}

.btn {
  padding: 0.75rem 1.5rem;
  outline: none;
  border: none;
  color: var(--white);
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  white-space: nowrap;
  background-color: var(--primary-color);
  border-radius: 10px;
  transition: 0.3s;
  cursor: pointer;
  margin-top: 30px;
}

.btn:hover {
  background-color: #bb0303;
  color:#dfdfdf;
  scale: 104%;
}

.btn1{
  padding: 0.75rem 1.5rem;
  outline: none;
  border: none;
  color: var(--white);
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  white-space: nowrap;
  background-color: var(--primaary-color-1);
  border-radius: 5px;
  transition: 0.3s;
  cursor: pointer;
  border:2px solid #38023d ;
}



.btn1:hover {
  background-color: #d00e0e;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--primaary-color-1);
  scale: 104%;

}

.btn2{
  padding: 0.75rem 1.5rem;
  outline: none;
  border: none;
  color: var(--white);
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  white-space: nowrap;
  background-color: goldenrod ;
  border-radius: 5px;
  transition: 0.3s;
  cursor: pointer;
  border:2px solid goldenrod ;
  margin-bottom: -300px;
  transform: translateY(-170%);
}

.btn2:hover {
  background-color: #d00e0e;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--primaary-color-1);
  scale: 104%;

}

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}

header {
  background-color: var(--primaary-color-1);
  overflow: hidden;
}

nav {
  position: fixed;
  isolation: isolate;
  width: 100%;
  z-index: 100;
}

.nav__header {
  padding: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--primaary-color-1);
}

.nav__logo a img {
  max-width: 130px;
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
  z-index: 1000;
}

nav__links {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2rem;
  padding: 4rem 2rem;
  background-color: #d00e0e;
  transform: translateX(100%);
  transition: transform 0.5s ease;
  z-index: 9999;
}

.nav__links {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5rem;
  padding: 2rem;
  background-color:#d00e0e; /* Changed from var(--primaary-color-1) */
  transition: transform 0.5s;
  transform: translateX(0);
  z-index: -1;
}

.nav__links.open {
  transform: translateX(100%); /* Visible when open */
}

.nav__links a {
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
}

.nav__links .btn {
  padding: 0;
  font-weight: 500;
  background-color: var(--primary-color);
  margin-bottom: 30px;
  border-radius: 10px;
  transform: translateX(20%);
}

.nav__links .btn:hover {
  background-color: #bb0303;
  border-bottom: none;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
}

.nav-overlay.active {
  display: block;
}

.header__container {
  display: grid;
  gap: 2rem;
 
}

.header__image img {
  max-width: 600px;
  margin-inline: auto;
  
}

.header__content h1 {
  margin-bottom: 1rem;
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 4rem;
  text-align: center;
}

.header__content .section__description  .section__description1 {
  margin-bottom: 2rem;
}

.header__socials{
  display: flex;
  align-items: center;
  justify-content: right;
  margin-left: 1070px;
  gap: 2rem;
  transform: translateY(170%);
  cursor: pointer;
  
}

.header__socials a{
  padding: 3px 6px;
  color: var(--background-color-1);
  font-size: 1.125rem;
  background-color: #520459;
  border-radius: 100%;

}

.header__socials a:hover{
  color: #bb0303;
}

.header__socials1{
  display: flex;
  align-items: center;
  justify-content: left;
  margin-left: -1190px;
  gap: 3rem;
  transform: translateY(140%);
}

.header__socials1 a{
  padding: 2px 5px;
  color: var(--background-color-1);
  font-size: 1.025rem;
  border-radius: 100%;
}

.header__socials1 a label{
  margin-left: 10px;
  color: #dfdfdf;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: small;
}

.header__socials1 a:hover{
  color: #bb0303;
}


.header__btn .btn {
  margin-bottom: 2rem;
  text-align: center;
  background-color:transparent;
  border: 2px solid rgb(229, 174, 34);
}

.header__btn .btn:hover {
 color:  rgb(229, 174, 34) ;
 border: 2px solid #bb0303;
 box-shadow: linear-gradient rgba(0, 0, 0, 0.1);
 transition: 1s;
 
}

.header__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-top: 20px;
}

.header__stats h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: goldenrod;

}

.header__stats p {
  font-size: 0.9rem;
  color: var(--extra-light);
  text-align: center;
}

.about {
  background-color: var(--background-color-1);
  overflow: hidden;
  height: fit-content;
}

.about__container {
  display: grid;
  gap: 2rem;
}

.about__image img {
  max-width: 500px;
  margin-inline: auto;
  border-radius: 1rem;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.about__content :is(.section__header, .section__description , .section__description1) {
  margin-bottom: 1rem;
}

.about__btn {
  margin-top: 2rem;
  text-align: center;
}

.program {
  background-color: var(--background-color-2);
 height: fit-content;
}

.program__header {
  display: grid;
  gap: 1rem 4rem;
}

.program__grid {
  margin-top: 4rem;
  display: grid;
  gap: 1rem;
}

.program__card {
  padding: 10rem 5rem;
  border-radius: 1rem;
  background-color: var(--secondary-color-2);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
  
}



.program__card:hover {
  background-color: var(--secondary-color);
  border: 2px solid var(--background-color-1);
  scale: 104%;
}

.program__card img {
  display: flex;
  width: 120%;
  max-height: fit-content;
  height: 100vh;
  margin-bottom: 2rem;
  border-radius: 0px;
  max-width: 700px;
  top: 50%;
  left: 50%;
  transform: translate(-8.5%);
  border: 0px solid var(--extra-light);
  border-radius: 1rem 1rem 0% 0%;
  margin-top: -22px;
}

.program__card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}

.program__card p {
  margin-bottom: 1rem;
  color: var(--extra-light);
  line-height: 1.75rem;
}

.program__card a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
}

.program__card a:hover {
 color: var(--primaary-color-1);
 padding: 5px 5px;
 border-radius: 10px;
 border:2px solid var(--background-color-1) ;
 text-transform: translatex(30%);
 width: 70%;
 box-shadow: rgb(44, 44, 44);
}

.service {
  background-color: var(--background-color-1);
  overflow: hidden;
  height: 105vh;
}

.service__container {
  display: grid;
  gap: 2rem;
  padding-block: 0;
 
}

.service__image img {
  max-width: 2800px;
  width: 800px;
  margin-top: 40px;
  height: 750px;
  margin-right: -560px;
}

.service__content {
  padding-block: 5rem 0;
  margin-bottom: 100px;
}

.service__content .section__header .section__header1 {
  margin-bottom: 2rem;
}

.service__content :is(.section__header,.section__header1, .section__description , .section__description1) {
  text-align: left;
}

.service__list {
  display: grid;
  gap: 1rem;
}

.service__list h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}

.service__list span {
  margin-right: 10px;
  color: var(--secondary-color);
}

.service__btn {
  margin-top: 2rem;
}

.testimonial {
  background-color: var(--background-color-2);
}

.testimonial__container {
  display: grid;
  gap: 2rem;
}

.testimonial__content .section__header .section__header1 {
  margin-bottom: 1rem;
}

.testimonial__swiper {
  overflow: hidden;
}

.swiper {
  width: 100%;
}

.testimonial__card {
  padding: 1rem;
  border-radius: 1rem;
  background-color: var(--background-color-3);
}

.user__details {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user__details img {
  max-width: 60px;
  border-radius: 100%;
}

.user__details h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-color);
}

.user__details h5 {
  font-size: 0.9rem;
  font-weight: 500;
  color: grey;
}

.user__ratings {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  color: goldenrod;
}

.testimonial__card .section__description  .section__description1 {
  text-align: left;
}

footer {
  background-color: var(--background-color-1);
}

.footer__container {
  display: grid;
  gap: 4rem 1rem;
}

.footer__col h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #55075c;
}

.footer__links {
  display: grid;
  gap: 1rem;
}

.footer__links a {
  color: var(--white);
}

.footer__links a:hover {
  color: var(--dark-color);
}

.footer__links a span {
  margin-right: 10px;
  font-size: 1.2rem;
  color: var(--primaary-color-1);
}

.footer__col form {
  margin-bottom: 1rem;
  width: 100%;
  max-width: 650px;
  display: flex;
  align-items: center;
  background-color: var(--white);
  border-radius: 5rem;
  
}

.footer__col input {
  width: 200%;
  padding-inline: 1rem;
  
  font-size: 1rem;
  color: var(--background-color-1);
  outline: none;
  border: none;
  background-color: transparent;
}

.footer__col .btn1 {
  margin: 5px;
  padding: 4px 10px;
  font-size: 1.5rem;
  border-radius: 5rem;
}

.footer__col .btn1:hover{
  background-color: #d00e0e;
}

.footer__col p {
  font-size: 1rem;
  line-height: 1.75rem;
  color: var(--dark-color);
}

.footer__bar {
  padding-block: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  border-top: 1px solid var(--primaary-color-1);
}

.footer__logo img {
  max-width: 190px;
}

.footer__bar p {
  font-size: 1rem;
  line-height: 1.75rem;
  color: var(--dark-color);
  text-align: center;
}

.footer__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer__socials a {
  padding: 2px 5px;
  color: var(--background-color-1);
  font-size: 1.125rem;
  background-color: var(--primaary-color-1);
  border-radius: 100%;
}

.footer__socials a:hover {
  color: var(--white);
  background-color: var(--secondary-color);
}

.news-section {
  padding: 4rem 1rem;
  background-color: var(--background-color-2);
  position: relative;
}

.section__header {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primaary-color-1);
  line-height: 3.25rem;
  text-align: center;
  margin-bottom: 2rem;
}

.news-container {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  width: fit-content;
}

.news-slider {
  display: flex;
  transition: transform 0.5s ease;
}

.news-card {
  min-width: calc(33.333% - 1.5rem);
  margin: 0 0.75rem;
  background-color: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
  margin-top: 3rem;
}

.news-card:hover {
 
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-image {
  transform: scale(1.04);
}

.news-content {
  padding: 1.5rem;
}

.news-date {
  font-size: 0.8rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.25rem;
  color: var(--primaary-color-1);
  margin-bottom: 1rem;
  font-weight: 600;
}

.news-excerpt {
  color: var(--dark-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--secondary-color);
}

.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.news-container:hover .nav-arrow {
  opacity: 1;
}

.nav-arrow:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.arrow-left {
  
  left: 125px;
}

.arrow-right {
  right: 130px;
}

.news-dots {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--extra-light);
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--primary-color);
}

@media (max-width: 1024px) {
  .news-card {
      min-width: calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .news-card {
      min-width: 100%;
  }

  .nav-arrow {
      width: 40px;
      height: 40px;
  }
}

/* Border animation */
@keyframes borderGlow {
  0% { border-color: var(--primary-color); }
  25% { border-color: var(--secondary-color); }
  50% { border-color: var(--primaary-color-1); }
  75% { border-color: var(--secondary-color); }
  100% { border-color: var(--primary-color); }
}

.news-card:hover {
  animation: borderGlow 2s infinite linear;
}


@media (width > 540px) {
  .program__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width > 768px) {
  nav {
    position: static;
    padding: 2rem 1rem;
    max-width: fit-content;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .nav__header {
    padding: 0;
    background-color: transparent;
  }

  .nav__logo a img {
    max-width: 170px;
    margin-right: 90px;
  }

  .nav__menu__btn {
    display: none;
  }

  .nav__links {
    position:static;
    padding: 0;
    width: fit-content;
    flex-direction: row;
    background-color: transparent;
    transform: none !important;

  }

  .nav__links a:hover {
    color: var(--primary-color);
    border-bottom: 3px solid #bb0303;
    border-radius: 5px;
  }

  .nav__links .btn {
    padding: 0.75rem 1.5rem;
    border-bottom: none;
    border: none;
  }


  .header__container {
    padding-block: 0;
    grid-template-columns: repeat(2, 1fr);
    align-items: flex-end;
  }

  .header__image {
    grid-area: 1/2/2/3;
  }

  .header__content {
    padding-block: 5rem;
  }

  .header__content :is(h1, .section__description  , .section__description1, .header__btn) {
    text-align: left;
  }

  .header__stats {
    justify-content: flex-start;
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .about__content :is(.section__header,.section__header1, .section__description, .section__description1 , .about__btn) {
    text-align: left;
  }

  .program__header {
    grid-template-columns: repeat(2, 1fr);
  }

  .program__header :is(.section__header,.section__header1, .section__description , .section__description1) {
    text-align: left;
  }

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

  .service__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: end;
  }

  .service__content {
    padding-block: 5rem;
  }

  .testimonial__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial__content :is(.section__header,.section__header1, .section__description , .section__description1) {
    text-align: left;
  }

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

  .footer__bar {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer__logo,
  .footer__socials {
    flex: 1;
  }

  .footer__socials {
    justify-content: flex-end;
  }
}

@media (width > 1024px) {
  .program__grid {
    gap: 1.5rem;
  }

  .program__card {
    padding: 1.5rem;
  }

  .testimonial__card {
    padding: 1.5rem;
  }
}
@media (max-width: 768px) {
  .program__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .program__card {
    padding: 2rem 1rem;
  }

  .program__card img {
    width: 100%;
    height: auto;
    transform: none;
    margin-top: 0;
  }

  .btn2 {
    margin: 2rem auto;
    display: block;
    transform: none;
  }
}
@media (max-width: 768px) {
  .header__container {
    margin-top: 50px; /* Push content below nav menu */
  }

  .news-slider {
    flex-direction: column;
    gap: 2rem;
  }

  .nav-arrow arrow-right{
    display:none;
  }

  .nav__links{
    margin-top: 0px;
    gap: 2.5rem;
    position: fixed;
    top: 0;
    right: 0;
    height: 150vh;
  
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 7rem 2rem;
    background-color: #d00e0e;
    transform: translateX(110%);
    transition: transform 0.5s ease;
    z-index: 2;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),  url('../../Img/matt-jones-9CPAjGVB378-unsplash.jpg') center/cover no-repeat;
    backdrop-filter: blur(75px);
    box-shadow: -8px 0 20px rgba(0, 0, 0, 0.4);
    color: white;
  }

  .nav__links::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color:rgba(208, 14, 14, 0.43); /* Black overlay with 50% opacity */
    z-index: -1; /* So it stays behind the nav content */
  }
  

  .nav__links.open {
    transform: translateX(50%); /* Slide in */
  }
  

  .nav__links .btn {
    border: none !important;
    background: none !important;
    padding: 0 !important;
    color: var(--white);
    font-size: 1.0rem;
    transform: none;
    background-color:transparent;
    margin-bottom: 20px;
    border-radius: 10px;
    transform: translateX(0%);
    margin-top: -400px;
    
  
  }

  .news-card {
    min-width: 100% !important;
    flex: 0 0 100%;
    scroll-snap-align: start;
    margin: 0 0 2rem 0;
    border-radius: 12px;
  }

  .nav-arrow {
    display: flex; /* Hide arrows on mobile */
  }

  .news-dots {
    display: none; /* Hide dots on mobile if slider is stacked */
  }

  .news-slider-wrapper {
    overflow-x: hidden;
    position: relative;
  }
  
  .news-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  
  .header__btn{
    scale: 0.9;
    text-align: center;
  }

  .header__stats h4{
    text-align: center;
  }
  
  .program__container .btn2{
    margin-top: -100px;
    margin-bottom: -50px;
  }
  
  .service__btn{
    text-align: center;
  }

}


@media (max-width: 768px) {


  .header__content h1 {
    font-size: 2rem;
    line-height: 2.8rem;
    padding: 0 1rem;
  }

  .program-slider-wrapper {
    position: relative;
    overflow: hidden;
  }

  .program-slider {
    display: flex;
    transition: transform 1s ease-in-out; /* smoother & slower */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .program__card {
    min-width: 100%;
    box-sizing: border-box;
  
  }

  .program-slider-dots {
    display: flex;
  
    justify-content: center;
    margin-top: 1rem;
  }

  .program-slider-dots .dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
  }

  .program-slider-dots .dot.active {
    background: var(--primary-color);
  }

  .program-slider-arrow.next-arrow {
    position: absolute;
    right: 10px;
    top: 45%;
    transform: translateY(-50%);
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    padding: 0.5rem;
    z-index: 10;
    cursor: pointer;
  }

  .program-slider-arrow i {
    font-size: 1.5rem;
    color: var(--primaary-color-1);
  }

  .program-slider-arrow:hover{
    background: var(--primary-color);
    scale: 1.1;
  }

}

@media (max-width: 768px) {
  
  .news-dots {
    display: none;
    margin-top: 1rem;
  }
}