/* GLOBAL STYLES
-------------------------------------------------- */

.app-root {
  min-height: 100vh;
  background-color: #FFFAF5;
  display: flex;
  flex-direction: column;
}

body {
  margin: 0;
  padding-top: 3rem;   /* for fixed navbar */
  color: #38023B;
  background: #FFFAF5;
}


main {
  flex: 1;
}






.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}






/* NAVBAR BRAND */
.navbar-brand {
    display: flex;
    margin-bottom: 0.1rem;
    line-height: 1.5;
    align-items: center;
    padding-top: .3125rem;
    padding-bottom: .3125rem;
    margin-right: 1rem;
    font-size: 1.25rem;
    line-height: inherit;
    white-space: nowrap;
    padding: 0;
}


  


/* NAVBAR PADDING */
.navbar {
    padding: .5rem 1rem;
}

.navbar-nav .nav-link {
    padding-right: 15px;
    padding-left: 15px;
}


/*----------------
-----------------------*/
/*CAROUSEL*/

.carousel-item {
  height: 70vh; 
  min-height: 400px;
}

.carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover; 
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.carousel-caption {
  z-index: 2;
}
/* adjust ONLY slide 1  */
.carousel-item.slide-1 img {
  object-position: 50% 45%; 
}

/* adjust ONLY slide 2 */
.carousel-item.slide-2 img {
  object-position: 50% 60%; 
}
/* adjust ONLY slide 3 */
.carousel-item.slide-3 img {
  object-position: 50% 40%; 
}

/* BASIC ELEMENTS */
nav {
    unicode-bidi: isolate;
}

a {
    text-decoration: none;
    background-color: transparent;
}

.container, .container-fluid, .container-lg, .container-md,
.container-sm, .container-xl, .container-xxl {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-right: auto;
    margin-left: auto;
}



/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Carousel base class */
.carousel {
    margin-bottom: 4rem;
}


.carousel-caption {
    bottom: 3rem;
    z-index: 10;
}


.carousel-item {
    height: 32rem;
}
.carousel-item > img {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    height: 32rem;
}

/* MARKETING CONTENT
-------------------------------------------------- */

/* Center align the text within the three columns below the carousel */
.marketing-btn,.btn-featurette {
  background-color: #A187E3; /* NORMAL state */
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
   border: none; 
}

.marketing-btn:focus,
.marketing-btn:active,.btn-featurette:active {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.4); 
   border: none; 
}
.marketing-btn:hover,.btn-featurette:hover {
  background-color: #ffc685;   
  color: #FFFAF5;
  transform: translateY(-2px); 
   border: none; 
}

.icon-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.icon-img {
  width: 80px;
  height: 80px;
}
.marketing .col-lg-4 {
    margin-bottom: 1.5rem;
    text-align: center;
}
.marketing h2 {
    font-weight: 400;
}
/* rtl:begin:ignore */
.marketing .col-lg-4 p {
    margin-right: .75rem;
    margin-left: .75rem;
}
/* rtl:end:ignore */

/* Featurettes
------------------------- */

/* HERO / FEATURETTE CTA – Get Started */
.carousel-get-started {
  background-color: #A187E3;   
  border-color: #A187E3;
  color: #ffffff;
  transition: background-color 0.2s ease,
              border-color 0.2s ease,
              transform 0.15s ease;
}

/* HERO SECONDARY CTA – Pet Care Essentials */
.carousel .btn.btn-outline-light {
  background-color: transparent;
  border: 2px solid  white;
  color:  white;
  
  transition: background-color 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease,
              transform 0.15s ease;
}

/* Hover / focus */
.carousel .btn.btn-outline-light:hover,
.carousel .btn.btn-outline-light:focus {
  background-color: #FFDBE2;   
  border-color: #FFDBE2;
  color: white;              
  transform: translateY(-2px);
}

/* Focus ring */
.carousel .btn.btn-outline-light:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 219, 226, 0.45);
}



.carousel-get-started:hover,
.carousel-get-started:focus {
  background-color: #FFC685;   
  border-color: #FFC685;
  color: #ffffff;
  transform: translateY(-2px);
}

.carousel-get-started:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 198, 133, 0.45);
}


.featurette-divider {
    margin: 5rem 0; 
}

.featurette h2 {
  margin-bottom: 3rem; 
}


.featurette-heading {
  margin-bottom: 2rem;
}

.featurette-cta {
  margin-top: 4rem;
  display: flex;
  justify-content: flex-end;
}
.featurette-image {
  width: 100%;
  height: 100%;
  object-fit: cover;      
  object-position: center;
    object-position: center top;  
 
}

.featurette-1{
   object-position: 60% 60%;

}

.featurette-2{
   object-position: 50% 70%;

}

.featurette-3{
   object-position: 40% 40%;

}

.featurette-image-wrapper {
  width: 500px;
  height: 500px;
  overflow: hidden;
}



/* Thin out the marketing headings */
.featurette-heading {
    font-weight: 300;
    line-height: 1;
    /* rtl:remove */
    letter-spacing: -.05rem;
}


/* ARTICLE HERO  */

.article-hero-petsitting {
  position: relative;
  min-height: 55vh;
  background-image: url("../assets/images/petknowledge/petsitting.jpg");
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
   justify-content: flex-start; 
}
.article-hero-cat-play {
  position: relative;
  min-height: 55vh;
  background-image: url("../assets/images/petknowledge/catplay.jpg");
  background-size: cover;
  background-position: center 50%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
   justify-content: flex-start; 
}

.article-hero-puppycare{
  position: relative;
  min-height: 55vh;
  background-image: url("../assets/images/petknowledge/puppy.jpg");
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
   justify-content: flex-start; 
}


.article-hero-cat-diet{
  position: relative;
  min-height: 55vh;
  background-image: url("../assets/images/petknowledge/cateat.jpg");
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
   justify-content: flex-start; 
}

.article-hero-dog-diet{
  position: relative;
  min-height: 55vh;
  background-image: url("../assets/images/petknowledge/dogdiet.jpg");
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
   justify-content: flex-start; 
}


.article-hero-pet-firework{
  position: relative;
  min-height: 55vh;
  background-image: url("../assets/images/petknowledge/scaredcat.jpg");
  background-size: cover;
  background-position: center 50%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
   justify-content: flex-start; 
}




/* THE OVERLAY */
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* TEXT CONTENT */
.article-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 3rem 2rem;
  color: #FFFAF5;
  margin-left: 2rem; 
}

.article-hero h1 {
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-meta {
  margin-bottom: 1.5rem;
  opacity: 0.85;
}



.thumbnail {
  width: 100%;
  height: 225px;        
  object-fit:cover;   
  object-position: center 40%; 
}

.article-tags .badge {
  font-size: 0.75rem;
  cursor: default;
}

.article-tags .badge {
  font-size: 0.8rem;
  font-weight: 400;
  backdrop-filter: blur(2px);
}

.btn-purple {
background-color: #A187E3;
  color: #ffffff;
  border-color: #A187E3;
   transition: background-color 0.2s ease,
              border-color 0.2s ease;
}

.btn-purple:hover,
.btn-purple:focus {
  background-color: #38023B; 
  border-color: #38023B;
  color: #ffffff;
}

.tag-muted {
  background-color: #f1f1f4;   
  color: #6c757d;              
  font-weight: 400;
  font-size: 0.75rem;
}

.kb-intro h1 {
  font-weight: 700;
  color: #38023B; 
   margin-bottom: 2rem;
}

/* Purple focus for search input */
.kb-search .form-control:focus {
  border-color: #A187E3;
  box-shadow: 0 0 0 0.2rem rgba(161, 135, 227, 0.25);
}

/* Lighter placeholder text for search input */
.kb-search .form-control::placeholder {
  color: #b8b8b8;
  opacity: 1; 
  font-size: 1.1rem;
}


.kb-intro .lead {
  color: #38023B; 
}













/* ===== FOOTER LAYOUT (GLOBAL & CONSISTENT) ===== */

.app-footer {
  background-color: #38023B;
  color: #FFFAF5;
  padding: 2rem 0;
}

.app-footer .footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
}

.app-footer .footer-center {
  grid-column: 2;
  font-size: 0.95rem;
}

.app-footer .footer-right {
  grid-column: 3;
  text-align: right;
  font-size: 0.95rem;
}

.app-footer a {
  color: #A187E3;
}

.app-footer a:hover {
  color: #FFDBE2;
}

.app-footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.app-footer .footer-center {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
}

.app-footer .footer-right {
  position: absolute;
  right: 0;
  margin: 0;
  font-size: 0.95rem;
}



/* ===============================
   NAVBAR SIGN UP / LOGIN BUTTONS
   =============================== */

.navbar .btn-outline-success {
  color: #FFDBE2;
  border-color: #FFDBE2;
  background-color: transparent;
}

.navbar .btn-outline-success:hover,
.navbar .btn-outline-success:focus {
  background-color: #FFDBE2;
  border-color: #FFDBE2;
  color: #38023B;
}



/* ===============================
   NAVBAR LOGOUT COLOR OVERRIDE
   =============================== */

.navbar .btn-outline-danger {
  color: #ffc685;
  border-color: #ffc685;
}

.navbar .btn-outline-danger:hover,
.navbar .btn-outline-danger:focus {
  background-color: #ffc685;
  border-color: #ffc685;
  color: #38023B;
}










/* RESPONSIVE CSS
-------------------------------------------------- */

/* Mobile: stack + center */
@media (max-width: 768px) {
  .app-footer .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .app-footer .footer-right {
    position: static;
  }
}


@media (min-width: 40em) {
    /* Bump up size of carousel content */
    .carousel-caption p {
        margin-bottom: 1.25rem;
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .featurette-heading {
        font-size: 50px;
    }
}

@media (min-width: 62em) {
    .featurette-heading {
        margin-top: 7rem;
    }
}

/* MOBILE LAYOUT – stack auth actions vertically */
@media(max-width: 768px) {
    #authButtons {
        flex-direction: column !important;
        width: 100%;
        margin-top: 10px;
    }

    #authButtons a,
    #authButtons button {
        width: 100%;
        text-align: center;
    }

   
}

@media (min-width: 992px) {
  .article-hero-content {
    margin-left: 4rem;
  }
}


/* ===============================
   FEATURETTE – MOBILE LAYOUT
   =============================== */
@media (max-width: 768px) {

  .featurette {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem 1.25rem;
  }

  .row.featurette {
    margin-bottom: 0 !important;
  }

  .featurette-divider {
    margin: 2rem 0 !important;
  }

  .featurette h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .featurette p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }
   .featurette-image-wrapper {
    width: 100%;
    height: 260px;
    overflow: hidden;
    margin: 0;
  }

  .featurette-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

 

  .featurette img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0 !important;
  }

  .featurette-cta {
    display: flex;
    justify-content: center;
    margin-top: 0.75rem;
  }

  .featurette-cta .btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
  }
}







/* ===== THEME COLOR OVERRIDES  ===== */


.bg-dark {
    background-color: #38023B !important;
}

.navbar-dark .navbar-brand {
    color: #FFFAF5 !important;
    font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link {
    color: #FFFAF5 !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link.active {
    color: #A187E3 !important;
}



