:root {
  --light-color: #FFFFFF;
  --dark-color: #000000;
  --dark-gray: #CCCCCC;
  --med-gray: #e7e6e6;
  --light-gray: #F7F7F7;

  /* Custom colors */
  --paragraph-color: var(--dark-color);
  --body-bg: var(--light-gray);
  --border-color: var(--dark-gray);
  --heading-color: var(--dark-color);
  --link-hover-color: var(--light-color);
  --button-text-color: var(--light-color);
  --button-bg: var(--dark-color);
  --button-hover-bg: var(--light-color);
  --input-bg: var(--light-gray);
  --input-text-color: var(--dark-color);
  --input-border-color: var(--dark-gray);
  --input-focus-border-color: var(--dark-color);
  --box-shadow-color: rgba(0, 0, 0, 0.1);
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--paragraph-color);
  background-color: var(--body-bg);
}

#home {
  background-color: rgba(253, 250, 246, 0.39);
}

/* General card styles */
.card {
  width: 330px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin: 4px;
  padding: 16px;
  background-color: var(--body-bg);
  max-height: 450px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 15px;
}

.card img {
  width: 100%;
  height: 230px;
  margin: 0.5rem 0;
  border-radius: 4px;
}

.card-description {
  margin: 0 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-heading{
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-section div{
  text-align: center;
}

.carousel-section div a{
  text-decoration: none;
  display: inline-block;
  margin-top: 16px;
  background-color: var(--dark-color);
  color: var(--light-color);
  border: 1px solid var(--dark-color);
  padding: 8px 40px;
  border-radius: 4px;
}

.carousel-section div a:hover{
  background-color: var(--light-color);
  color: var(--dark-color);
  transition: all .2s linear;
}

/* Input styles */
input[type="text"], input[type="search"] {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  background-color: var(--input-bg);
  color: var(--input-text-color);
  border: 1px solid var(--input-border-color);
}

input:focus {
  outline: none;
  border: 1px solid var(--input-focus-border-color);
  box-shadow: 0 2px 4px var(--box-shadow-color);
}

/* Contact section */
.contact-section {
  background-color: var(--med-gray);
  padding: 4rem 8rem;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.left-contact, .right-contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.right-contact form{
  background-color: var(--body-bg);
  border: 1px solid var(--border-color);
  padding: 18px;
}

.left-contact h1,
.left-contact h3 {
  color: var(--heading-color);
  margin: 0.5rem 0;
}

.contact-form {
  padding: 20px;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  background-color: var(--body-bg);
  box-shadow: var(--box-shadow-color);
}

.contact-button {
  background-color: var(--heading-color);
  color: var(--body-bg);
  margin-top: 16px;
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 16px;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.contact-button:hover {
  background-color: var(--body-bg);
  color: var(--heading-color);
  border: 1px solid var(--heading-color);
  transition: all 0.2s linear;
}

.contact-links {
  margin-top: 30px;
}

/* Carousel section */
.carousel-section {
  margin: 4rem 0;
  padding: 1rem;
  background-color: var(--med-gray);
}

.center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wrapper {
  overflow: hidden;
  width: 100%;
  max-width: 94%;
  padding: 0.6rem;
}

.inner {
  display: flex;
  transition: transform 1.5s ease;
  width: 100%;
}

.arrow {
  background-color: var(--heading-color);
  border: none;
  border-radius: 4px;
  color: var(--body-bg);
  font-size: 2em;
  padding: 0.9em 0.5em;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s;
  border: 1px solid var(--heading-color);
}

.left-arrow, .left-arrow2 {
  left: 2em;
}

.right-arrow, .right-arrow2 {
  right: 2em;
}

.arrow:hover {
  background-color: var(--body-bg);
  color: var(--heading-color);
}

/* Loading Indicator Styles */
.loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1000;
}

.loading-indicator .spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #000;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
      transform: rotate(360deg);
  }
}


/* Media Queries */

@media only screen and (min-width: 250px) and (max-width: 400px){
  .bi-list, .bi-x{
    font-size: 26px;
  }
.contact-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 1rem;
}

.cards-head h2{
  font-size: 22px;
}

.card-heading{
  font-size: 16px;
}

.card-description{
  font-size: 14px;
}

.right-contact form {
  max-width: 100%;
  padding: 14px;
}

.right-contact form div{
  margin: 0.6rem 0rem;
}

.left-contact,
.right-contact {
  align-items: center;
  width: 100%;
}

.left-contact h1{
  font-size: 24px;
}

.left-contact h3{
  font-size: 18px;
  text-align: center;
}

.left-contact p{
  font-size: 14px;
}

.contact-links{
  margin-top: 20px;
}

.wrapper{
  width: 100%;
}

.card{
  width: 310px;
}

.arrow{
  padding: 0.7em 0.4em;
}

.right-arrow, .right-arrow2 {
  right: 0.1rem;
}

.left-arrow, .left-arrow2 {
  left: 0.1rem;
}

.carousel-section {
  margin: 0;
}
}

@media only screen and (min-width: 400px) and (max-width: 480px) {
  .bi-list, .bi-x{
    font-size: 28px;
  }
.contact-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 1rem;
}

.cards-head h2{
  font-size: 24px;
}

.card-heading{
  font-size: 18px;
}

.card-description{
  font-size: 15px;
}

.right-contact form {
  max-width: 100%;
  padding: 15px;
}

.right-contact form div{
  margin: 0.6rem 0rem;
}

.left-contact,
.right-contact {
  align-items: center;
  width: 100%;
}

.left-contact h1{
  font-size: 24px;
}

.left-contact h3{
  font-size: 18px;
  text-align: center;
}

.left-contact p{
  font-size: 15px;
}

.contact-links{
  margin-top: 20px;
}

.wrapper{
  width: 100%;
}

.card{
  width: 310px;
}

.arrow{
  padding: 0.7em 0.4em;
}

.right-arrow, .right-arrow2 {
  right: 0.1rem;
}

.left-arrow, .left-arrow2 {
  left: 0.1rem;
}

.carousel-section {
  margin: 0;
}
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (min-width: 480px) and (max-width: 850px){
  .bi-list, .bi-x{
    font-size: 32px;
  }
.contact-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 1rem;
}

.cards-head h2{
  font-size: 24px;
}

.card-heading{
  font-size: 18px;
}

.card-description{
  font-size: 16px;
}

.right-contact form {
  width: 100%;
  padding: 16px;
}

.right-contact form div{
  margin: 0.8rem 0rem;
}

.left-contact,
.right-contact {
  align-items: center;
  width: 100%;
}

.left-contact h1{
  font-size: 24px;
}

.left-contact h3{
  font-size: 20px;
  text-align: center;
}

.left-contact p{
  font-size: 18px;
}

.contact-links{
  margin-top: 20px;
}

.right-arrow, .right-arrow2 {
  right: 0.1rem;
}

.left-arrow, .left-arrow2 {
  left: 0.1rem;
}

.carousel-section {
  margin: 0;
}
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 850px) and (max-width: 950px){
  .bi-list, .bi-x{
    font-size: 34px;
  }
  
.contact-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin: none;
  padding: 1rem;
}

.right-contact form {
  width: 100%;
  padding: 18px;
}

.right-contact form div{
  margin: 1rem 0rem;
}

.left-contact,
.right-contact {
  align-items: center;
  width: 100%;
}

.carousel-card {
  flex: 0 0 calc(50% - 0.4rem); /* Adjust card width for smaller screens */
  min-width: 160px; /* Minimum width for cards */
}

.right-arrow, .right-arrow2 {
  right: 0.1rem;
}

.left-arrow, .left-arrow2 {
  left: 0.1rem;
}

.carousel-section {
  margin: 0;
}
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 950px) and (max-width: 1200px){
  
.contact-section {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 2rem;
}

.cards-head h2{
  font-size: 26px;
}

.card-heading{
  font-size: 20px;
}

.card-description{
  font-size: 18px;
}

.right-contact form {
  max-width: 100%;
  padding: 18px;
}

.right-contact form div{
  margin: 1rem 0rem;
}

.left-contact h1{
  font-size: 26px;
  text-align: center;
}

.left-contact h3{
  font-size: 20px;
  text-align: center;
}

.left-contact p{
  font-size: 18px;
  text-align: center;
}

.contact-links{
  margin-top: 20px;
  text-align: center;
}

.wrapper{
  width: 100%;
}

.card{
  width: 320px;
}

.right-arrow, .right-arrow2 {
  right: 0.2rem;
}

.left-arrow, .left-arrow2 {
  left: 0.2rem;
}

.carousel-section {
  margin: 0;
}
}