/*This file contains all the custom new changes in the css in Sugarlabs official website*/
/*Also add proper comment for every section you add in this custom.css file*/

/*This is for the reference video section in Music Blocks landing page */

.video-container {
  display: flex;
  justify-content: center;
}

.video-container div {
  margin: 0 10px;
}

.intro_img>.container>div>div>div>p {
  padding: 0 10px;
}

/*This is for navLogo of navbar */
#navLogo {
  margin-top: 6px;
}

/* This is for the service section on www */

#service .service-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  margin: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: 350px;
  box-sizing: border-box;
}

#service .service-item img{
  width: 100px;
  height: 100px;
}
@media screen and (min-width: 768px) and (max-width: 1043px) {
  .col-sm-6 {
    max-width: 50%;
    flex: 0 0 50%;
  }
  .service-item {
    height: auto;
  }
}
@media (max-width: 767.98px) {
  .col-sm-6 {
    max-width: 100%;
    flex: 0 0 100%;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .col-md-3 {
    max-width: 33.33%;
    flex: 0 0 33.33%;
  }
}
@media (min-width: 1200px) {
  .col-md-3 {
    max-width: 25%;
    flex: 0 0 25%;
  }
}
#social-media-logos-section .social-media-logos-img {
  padding-left: 44%;
}

/* Styles for the donation banner */

#donation-banner {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: row;
  align-content: normal;
  justify-content: center;
  align-items: center;
  padding: 15px 10px;
  margin: 0;
  width: 100%;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
  background-color: rgb(0, 49, 109);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#donation-banner.hidden {
  opacity: 0;
  visibility: hidden;
  display: none;
}

.donate-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  flex-wrap: wrap;
  padding: 0 10px;
}

.donate-icon {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.donate-text-container {
  text-align: left;
  justify-content: center;
  padding: 5px 15px;
}

.donate-text {
  color: white;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.5;
  max-width: 70vw;
  margin: 0.19rem 0;
}

.donate-text a {
  color: #FFD700;
  text-decoration: underline;
}

.donate-button {
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  background-color: white;
  font-weight: bold;
  cursor: pointer;
  margin: 0.375rem auto;
  text-decoration: none;
}

.donate-button a {
  color: rgb(0, 49, 109);
  text-decoration: none;
}

.donate-button:hover {
  background-color: #FFD700;
  color: rgb(0, 49, 109);
}

.donate-close-button .close-button{
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

/* Popup Banner Styles */
#donate-popup-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgb(0, 49, 109);
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 1000;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
}

#donate-popup-banner .donate-close-button {
  text-align: right;
}

#popup-trigger {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #FFD700;
  color: rgb(0, 49, 109);
  padding: 10px 20px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

/* Vertical "Donate" Button */
#vertical-donate-button {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: #FFD700;
  color: rgb(0, 49, 109);
  padding: 0px 5px;
  border-radius: 0 5px 5px 0;
  border: none;
  cursor: pointer;
  font-weight: bold;
  display: block;
  z-index: 999;
  text-align: center;
  line-height: 1.5;
}

#vertical-donate-button:hover {
  background-color: rgb(255, 223, 0);
}


/* Responsive Design */
@media (max-width: 768px) {
  #donation-banner .donate-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
  }

  .donate-icon {
    margin-bottom: 10px;
  }

  .donate-text-container {
    max-width: 100%;
    margin-bottom: 10px;
  }

  .donate-text {
    font-size: 0.9rem;
  }

  .donate-button {
    text-align: center;
  }

  .donate-close-button {
    position: relative;
    top: 0;
    right: 0;
    vertical-align: middle;
  }
}

@media only screen and (max-width: 640px) {
  .donate-button {
    margin-bottom: 1rem;
  }
}

#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(45deg, #474354, white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid black;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  display: none;
}

/* fix list rendering */
ul {
  list-style: inherit;
}

/* Container for Product Cards */
.product-container {
  padding-left: 150px;
  padding-right: 150px;
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 150px;
}

/* Individual Product Card */
.product-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
}

/* product image Styling */
.product-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 250px;
}

/* Product Details */
.product-details {
  padding: 15px;
}

.product-name {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.product-description {
  font-size: 1rem;
  color: #666;
  margin-bottom: 15px;
}

.product-price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.explore-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

/* Specific styles for Roadmap list */

.roadmap-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
}

.roadmap-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #000000;
    border-radius: 50%;
    margin-right: 10px;
}

.roadmap-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* This is for project section in about page */

#projects{
  padding: 100px 0;
}

#projects .project-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  margin: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  height: auto;
  text-align: center; 
}

#projects .project-card h4 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

#projects .project-card p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.5rem;
}

#projects .project-card .btn-custom {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

#projects .btn-custom {
  margin-top: 1rem; 
}

/* Styles for Newsletter Section */

#cta-section {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #3b3b4f; /* Matching the dark theme */
  padding: 50px 20px;
  color: white;
  text-align: center;
}

#cta-section .cta-heading {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

#cta-section .cta-description {
  font-size: 1.2rem;
  margin-bottom: 0px;
  line-height: 1.6;
  text-align: center;
}

/* Ensuring proper layout for label and input */
.cta-d-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.cta-d-flex label {
  text-align: center;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
  color: rgb(171, 169, 169);
  font-weight: bold;
}

.cta-form-control {
  border-radius: 30px;
  padding: 12px 20px;
  margin: 0px;
  border: 2px solid #ccc;
  font-size: 1rem;
  transition: all 0.3s ease-in-out;
  width: 100%;
  max-width: 350px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cta-form-control:focus {
  border-color: #ffcc00;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.7);
  outline: none;
}

.cta-btn-primary {
  background: linear-gradient(90deg, #ffcc00, #ffdb4d);
  border: none;
  margin-top: 0px;
  margin-bottom: 0px;
  border-radius: 30px;
  padding: 12px 25px;
  font-size: 1.1rem;
  color: #3b3b4f;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(255, 204, 0, 0.3);
}

.cta-btn-primary:hover {
  background: linear-gradient(90deg, #ffdb4d, #ffcc00);
  box-shadow: 0 5px 20px rgba(255, 204, 0, 0.5);
  transform: translateY(-2px);
}

.cta-btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(255, 204, 0, 0.4);
}

/* Responsive design for Newsletter Section */
@media (max-width: 768px) {
  .cta-buttondown-form input[type="email"],
  .cta-buttondown-form input[type="submit"] {
    width: auto;
  }

  /* Adjust form layout for smaller screens */
  .cta-buttondown-form {
    flex-direction: column;
    gap: 20px;
  }

  .cta-form-control {
    max-width: 90%;
  }

  .cta-btn-primary {
    width: auto;
    max-width: 90%;
  }
}

/* Additional enhancements */
#cta-section .cta-heading {
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Added text shadow for better contrast and visibility */
}

.cta-buttondown-form input[type="email"]::placeholder {
  color: #aaa; /* Lightens placeholder text */
  font-style: italic; /* Makes the placeholder text italic for better visibility */
  font-size: 0.9rem; /* Adjusted font size for better readability */
}

.cta-buttondown-form input[type="submit"]:active {
  transform: translateY(1px); /* Makes the button appear pressed when clicked */
  box-shadow: 0 2px 5px rgba(255, 204, 0, 0.4); /* Adds a subtle shadow effect when the button is active */
}

/* Testimonial Styling */

#testimonials {
  background-color: #3b3b4f; /* Change the background color */
  padding: 5rem 0;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 8px;
}

.testimonials-title {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.testimonials-subtitle {
  font-size: 1.1rem;
  color: white;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.testimonial-carousel-wrapper {
  position: relative;
  padding: 0 2rem;
}

.testimonial-card {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  margin: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-content {
  position: relative;
}

.testimonial-text {
  font-size: 1.1rem;
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 2rem;
}

.testimonial-text::before {
  content: "“";
  position: absolute;
  left: -1rem;
  top: -1rem;
  font-size: 4rem;
  color: #48bb78;
  font-family: Georgia, serif;
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.author-name {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1rem;
}

.author-role {
  color: #718096;
  font-size: 0.9rem;
}

/* Owl Carousel Customization */
.owl-dots {
  text-align: center;
  margin-top: 2rem;
}

.owl-dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  border-radius: 50%;
  background: #cbd5e0 !important;
  transition: all 0.3s ease;
}

.owl-dot.active {
  background: #48bb78 !important;
  transform: scale(1.2);
}

.owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #48bb78 !important;
  font-size: 1.5rem !important;
}

.owl-nav button:hover {
  background: #48bb78 !important;
  color: white !important;
}

.owl-prev {
  left: -50px;
}

.owl-next {
  right: -50px;
}

@media (max-width: 768px) {
  .testimonials-title {
    font-size: 2rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
    margin: 0.5rem;
  }
  
  .testimonial-text {
    font-size: 1rem;
    padding-left: 1.5rem;
  }
  
  .owl-nav button {
    width: 35px;
    height: 35px;
    font-size: 1.2rem !important;
  }
}
