* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Kumbh Sans', sans-serif;

}

/*Configuration for top navigation bar*/
.navbar { 
    background: #131313;
    height: 80 px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 999; /*makes it so the bar is always above when you scroll*/
}

.navbar__logo-img {
    height: 64px;
    width: 64px;
    margin-right: 1rem;
    border-radius: 50%;
    object-fit: cover;
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px; /*Adds space between the items in the navbar*/
}

#navbar__logo { /*OCEF text*/
    background-color: #fff;
    background-image: linear-gradient(to top, #fff 100%);
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 2.8rem;
}

.fa-gem {
    margin-right: 0.5rem;
}
/*Aligning the items in the navbar so they appear side by side when full page*/
.navbar__menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
}

.navbar__item {
    height: 80px;
}

.navbar__links {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%
}

.navbar__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0, 1rem;
    width: 100%;
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 10px 20px;
    height: 100%;
    width: 100%;
    border: none;
    outline: none;
    border-radius: 4px;
    background: #f77062;
    color: #fff;
    font-weight: bold;
}

/*Hover transitions for sign up and the other links*/
.button:hover {
    background: #4837ff;
    transition: all 0.3s ease;
}

.navbar__links:hover {
    color: #f77062;
    transition: all 0.3s ease;
}

@media screen and (max-width: 960px) {
    .navbar__container {
        display: flex;
        justify-content: space-between;
        height: 80px;
        z-index: 1;
        width: 100%;
        max-width: 1300px;
        padding: 0;
    }

.navbar__menu {
    display: grid;
    grid-template-columns: auto;
    margin: 0;
    width: 100%;
    position: absolute;
    top: -1000px;
    opacity: 0;
    transition: all 0.5s ease;
    height: 50vh;
    z-index: -1;
    background: #131313;
}
/*When the navbar drops down*/
.navbar__menu.active {
    background: #131313;
    top: 100%;
    opacity: 1;
    transition: all 0.5s ease;
    z-index: 99;
    height: 63vh;
    font-size: 1.6rem;
}

#navbar__logo {
    padding-left: 25px;
}

.navbar__toggle .bar {
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background: #fff;
}

.navbar__item {
    width: 100%;
}

.navbar__links {
    text-align: center;
    padding: 2rem;
    width: 100%;
    display: table;
}

#mobile-menu {
    position: absolute;
    top: 20%;
    right: 5%;
    transform: translate(5%, 20%);
}

.navbar__btn {
    padding-bottom: 2rem;
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 70px;
    margin: 0;
}

.navbar__toggle .bar {
    display: block;
    cursor: pointer;
}

#mobile-menu.is-active .bar:nth-child(2) {
    opacity: 0;
}
#mobile-menu.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
#mobile-menu.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
}

.popup-message {
  position: fixed;
  bottom: auto;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 2000;
}

.popup-message.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}


/* Hero Section CSS*/

.main {
    background-color: #fff/*#e3c69a;*/
}

.main__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-self: center;
    margin: 0 auto;
    min-height: 100vh;
   /* background-color: #e3c69a; */
   background-color: #fff;
    width: 100%;
    max-width: 1300px;
}

.main__content h1 {
    font-size: 3rem;
    background-color: #830908;
   /* background-image: linear-gradient(to top, #ff0844 0%, #ffb199 100%); */
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

.main__content h2 {
    margin-top: 1rem;
    font-size: 2rem;
    background-color: #141414;
  /*  background-image: linear-gradient(to top, #b721ff 0%, #21d4fd 100%); */
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

.section {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 2rem;
}

.section-img {
    width: 300px; /* or adjust based on your layout */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.memorial-img {
  display: block;
  margin: 10px auto 0;
  width: 60%;
  max-width: 500px;
  max-height: 230px;   /* limit the height */
  object-fit: cover;   /* crops image nicely instead of squishing */
  border-radius: 8px;
}


.main__content p {
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #141414
}

.main__btn {
    font-size: 1.5rem;
    font-weight: bold;
    background-image: linear-gradient(to top, #830908 0%, #830908 100%);
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    color: #fff;
    margin-top: 2rem;
    cursor: pointer;
    position: relative;
    transition: all 0.35s;
    outline: none;
}

.main__btn a {
    position: relative;
    z-index: 2;
    color: #fff;
    text-decoration: none;
}

.main__btn:after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #4837ff;
    transition: all 0.35s;
    border-radius: 4px;
}

.main__btn:hover {
    color: #fff;
}

.main__btn:hover:after {
    width: 100%;
}

.main__img--container {
    text-align: center;
}

#main__img {
    height: 70%;
    width: 70%;
}

/* Mobile Responsive */ 
@media screen and (max-width: 768px) {
    .main__container {
        display: grid;
        grid-template-columns: auto;
        align-items: center;
        justify-self: center;
        width: 100%;
        margin: 0 auto;
        min-height: 100vh;
    }

@media (max-width: 768px) {
    .section {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }

    .section-img {
        width: 100%;
        max-width: 400px;
    }
}


.main__content {
    text-align: center;
    margin-bottom: 4rem;
}

.main__content h1 {
    font-size: 2rem;
    margin-top: 2rem;
}

.main__content h2 {
    font-size: 1.5rem;
}

.main__content p {
    margin-top: 0.5rem;
    font-size: 1.5rem;
}
}

@media screen and (max-width: 480px) {
    .main__content h1 {
        font-size: 2rem;
        margin-top: 2rem;
    }
    
    .main__content h2 {
        font-size: 2rem;
    }
    
    .main__content p {
        margin-top: 2rem;
        font-size: 1.5rem;
    }

    .main__btn {
        padding: 12px 36px;
        margin: 2.5rem 0;
    }
}


/* Services Section CSS */

.services {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 110vh;
}

.services h1 {
    background-color: #830908;
    background-image: linear-gradient(
        #830908 100%);
    background-size: 100%;
    margin-bottom: 5rem;
    font-size: 4rem;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

.services__container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.services__card {
    margin: 1rem;
    height: 525px;
    width: 400px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, 
    rgba(17, 17, 17, 0.6) 100%);
}

.women-card {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, 
    rgba(17, 17, 17, 0.6) 100%),
    url("images/OngbouWomen.jpg");
}

.youth-card {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, 
    rgba(17, 17, 17, 0.6) 100%),
    url("images/Straw_building.jpg");
}

.merch-card {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, 
    rgba(17, 17, 17, 0.6) 100%),
    url("images/OngbouChangBiography.jpg");
}


.services h2 {
    position: absolute;
    top: 425px;
    left: 30px;
    font-size: 1.2rem;
}

.services__card p {
    position: absolute;
    top: 375px;
    left: 30px;
}

.services__card button {
    color: #fff;
    padding: 10px 20px;
    border: none;
    outline: none;
    border-radius: 4px;
    background: #830908;
    position: absolute;
    top: 475px;
    left: 30px;
    font-size: 1rem;
    cursor: pointer;
}

.services__card-link {
    text-decoration: none;
}

.services__card-link .services__card {
    transition: transform 0.2s ease-in;
}

.services__card-link:hover .services__card {
    transform: scale(1.075);
    cursor: pointer;
}

.services__card:hover {
    transform: scale(1.075);
    transition: 0.2s ease-in;
    cursor: pointer;
}

@media screen and (max-width: 960px){
    .services{
        height: 1600px;
    }
    .services h1{
        font-size: 2rem;
        margin-top: 12rem;
    }
}

@media screen and (max-width: 480px){
    .services{
        height: 1400px;
    }
    .services h1{
        font-size: 1.2rem;
    }
    .services__card{
        width: 300px;
    }
}


/* footer */

footer {
  background-color: #f8f8f8; /* Light gray background */
  text-align: center;
  padding: 15px 0;
  font-size: 1rem;
  color: #333; /* Dark gray text */
  border-top: 1px solid #ddd;
  position: relative; /* Change to fixed if you want it always visible */
  bottom: 0;
  width: 100%;
}

footer a {
  color: #0066cc; /* Link color */
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


/*Text section

.text {
    padding: 4rem 2rem;
    background-color: #141414;
    text-align: left;
}

.text__container {
    max-width: 1200px;
    margin: 0 auto;
}

.text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ff8177;
}

.text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #dcdcdc;
}
*/


.text {
    padding: 4rem 2rem;
    background-color: #fff;
    text-align: left;
}

.text__container {
    max-width: 1200px;
    margin: 0 auto;
}

.text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #830908;
}

.text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #141414;
}


/* Modal background */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

/* Modal content box */
.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 2rem;
  border: 1px solid #888;
  width: 400px;
  border-radius: 10px;
  text-align: center;
}

.modal-content h2 {
  margin-bottom: 1rem;
}

.modal-content input {
  width: 80%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.modal-content button {
  background-color: #830908;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.modal-content .close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}

/* Merchandise CSS */

.title {
    background-color: #fff;
}

.title > .title { /* Nested container */
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-self: center;
    margin: 0 auto;
    min-height: 100vh;
    width: 100%;
    max-width: 1300px;
     margin-top: -80px;
}

.title__content h1 {
    text-align: center;
    font-size: 3rem;
    background-color: #830908;
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

.title__content h2 {
    margin-top: 1rem;
    text-align: center;
    font-size: 1.5rem;
    background-color: #141414;
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

.title__img--container {
    display: flex;
    justify-content: flex-end; /* Push image to the right */
    align-items: center;
    width: 100%;
}

#title__img {
    width: 90%;
    max-width: 700px; /* Adjust size as needed */
    height: auto;
}

/* Products CSS */

.products {
  padding: 0rem 2rem;
  background-color: #fff;
  text-align: center;
  padding-bottom: 2rem;
}

.products__header h2 {
  font-size: 2.5rem;
  color: #830908;
  margin-bottom: 0.5rem;
}

.products__header p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 2rem;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.product-card {
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  width: 100%;
  max-width: 300px;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.product-title {
  margin-top: 1rem;
  font-size: 1rem;
  color: #830908;
}

.product-links {
  margin-top: 0.3rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.product-links a {
  font-size: 0.95rem;
  color: #0073e6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.2s;
}

.product-links a:hover {
  border-bottom: 1px solid #0073e6;
}

.store-logo {
  height: 20px;
  width: auto;
  vertical-align: middle;
  margin-right: 6px;
}

/* Mobile styles */
@media (max-width: 768px) {
  
  /* Title Section */
  .title > .title {
    margin-top: 20px;
    grid-template-columns: 1fr;  /* Stack text and image vertically */
    min-height: auto;             /* Let height adjust naturally */
    padding: 1rem 1.5rem;
  }
  
  .title__content {
    text-align: center;           /* Center text on mobile */
    margin-bottom: 1.5rem;
  }

  .title__img--container {
    justify-content: center;      /* Center image horizontally */
  }

  #title__img {
    max-width: 90vw;              /* Responsive width */
    height: auto;
  }

  /* Products Section */
  .products__grid {
    grid-template-columns: 1fr;   /* Stack product cards vertically */
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .product-card {
    max-width: 100%;
    width: 100%;
  }

  .product-links {
    justify-content: center;      /* Center purchase links */
  }
}

/* Youth section */

.hero {
  position: relative;
  aspect-ratio: 1 / 1;   /* keeps it square */
  width: 50%;            /* set width, height follows automatically */
  margin: 1rem auto 0;   /* center + top margin */
  background: url("images/Wide_shot_school.jpg") no-repeat center center/cover;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border-radius: 15px;
  overflow: hidden;
}

.hero__title {
  color: #830908;
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

/*
.hero__overlay {
  padding: 20px 40px;
  margin-top: 10px; 
  border-radius: 10px;
}

.hero__overlay h1 {
  color: #000;
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
}
*/

/* Mobile styles */
@media (max-width: 768px) {
  .hero {
    width: 70%;   /* narrower on mobile */
  }

  .hero__title {
    font-size: 1.8rem; /* smaller text */
  }
}

/* image section */

.schoolImages {
    display: flex;
    justify-content: center;
    gap: 6rem;
    margin-top: 0rem;
    flex-wrap: wrap;
}

.schoolImages img {
    aspect-ratio: 1 / 1;
    max-width: 35%;
    height: auto;
    flex: 1 1 45%;
    border-radius: 8px;
}

/* Exposition Section */
.exposition {
  padding: 60px 20px;          /* breathing room around content */
}

.exposition__container {
  max-width: 1200px;            /* keeps text from going too wide */
  margin: 0 auto;              /* centers the container */
  margin-top: 1rem;
  line-height: 1.7;            /* improves readability */
  color: #333;                 /* dark gray instead of pure black */
}

.exposition__container p {
  margin-bottom: 1.5rem;       /* space between paragraphs */
  font-size: 1.5rem;           /* slightly larger text */
  text-align: justify;         /* neat, newspaper-style look */
}

/* Arial images: 4:3 side by side */
.arial-images {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2rem 0;
  flex-wrap: wrap; /* allows stacking on smaller screens */
}

.arial-images img {
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 400px;  /* adjust size */
  object-fit: cover;
  border-radius: 8px;
}

/* Kids images: 1:1 aspect ratio, side by side */
.kids-images {
  display: flex;
  justify-content: center;
  gap: 8rem;
  margin: 2rem 0;
}

.kids-images img {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 300px;
  object-fit: cover;
}

@media (max-width: 768px) {

  /* Arial images on mobile */
  .arial-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;            /* tighter gap for small screens */
    width: 100%;
    flex-wrap: nowrap;    /* keep them in one row */
  }

  .arial-images img {
    flex: 1 1 50%;        /* each image takes half the row */
    max-width: 50%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  /* Kids images on mobile */
  .kids-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
    flex-wrap: nowrap;
  }

  .kids-images img {
    flex: 1 1 50%;        /* each image takes half the row */
    max-width: 50%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  /* school images on mobile */

  .schoolImages {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
    flex-wrap: nowrap;
  }

  .schoolImages img {
    flex: 1 1 50%;        /* each image takes half the row */
    max-width: 45%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
}

/*Women section*/
/*
.women_main {
  position: relative;
  height: 60vh; 
  width: 60%;  
  margin: 0 auto; 
  margin-top: 1rem;
  background: url("images/Woman.jpg") no-repeat center center/cover;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border-radius: 15px; 
  overflow: hidden;   
}
*/

.women_main__container h1 {
  color: #830908;
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  margin-top: 1rem;
}

.women_main__images {
  display: flex;              /* put images in a row */
  justify-content: center;    /* center them horizontally */
  gap: 6rem;                  /* spacing between the images */
  margin-top: 2rem;
  flex-wrap: wrap;            /* allow wrapping on smaller screens */
}

.women_main__images img {
  flex: 1 1 45%;              /* each image takes ~45% of container */
  max-width: 27%;            /* make sure they shrink properly */
  aspect-ratio: 1 / 1;
  height: auto;               /* keep aspect ratio */
  border-radius: 8px;
}

@media (max-width: 768px) {
    .women_main__container h1 {
        font-size: 2.4rem;
    }

    .women_main__images {
        gap: 1.5rem; /* reduce gap for smaller screens */
        width: 100%;
        display: flex;
        flex-wrap: wrap; /* allow images to stack */
        justify-content: center;
        align-items: center; /* optional: vertically center images */
    }

    .women_main__images img {
        width: 100%;
        max-width: 300px; /* prevents them from becoming too large */
        height: auto; /* maintain aspect ratio */
        object-fit: cover; /* optional: fills container nicely */
    }
}