/********** Template CSS **********/
:root {
    --primary: #04c4be;
    --secondary: #29b349;
    --light: #F3F4F5;
    --dark: #282F34;
    --footer: #2E2E2E;
    --buttontext: #1C1C1C;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.text-primary {
    color: var(--primary) !important;
}

.section-title {
    color: var(--dark) !important;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
}

.btn {
    font-weight: 500;
    transition: .5s;
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--buttontext) !important;
}

.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand {
    display: flex;
    align-items: center;
}

.navbar .navbar-brand img {
    max-height: 50px;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 20px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item.active {
    background-color: #e9ecef !important;  /* same gray as hover */
    color: #000 !important;               /* keep text visible */
}
@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }

}


/*** Header ***/
.header-bg {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/bg-1.jpg) center center no-repeat;
    background-size: cover;
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: #FFFFFF;
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--primary);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

.header-link {
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--dark);
    text-decoration: none;
}

.header-link:hover {
    color: var(--primary);
}


@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}

.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 40px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    transition: .5s;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: #FFFFFF;
    border-radius: 5px;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Img Border ***/
.img-border {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.img-border::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 3rem;
    bottom: 3rem;
    border: 5px solid var(--primary);
}

.img-border img {
    position: absolute;
    top: 3rem;
    left: 3rem;
    width: calc(100% - 3rem);
    height: calc(100% - 3rem);
    object-fit: cover;
}


/*** Facts & Visiting Hours ***/
.facts {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/bg-1.jpg) center center no-repeat;
    background-size: cover;
}

.visiting-hours {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/bg-2.jpg) center center no-repeat;
    background-size: cover;
}

.visiting-hours .list-group-item {
    display: flex;
    justify-content: space-between;
    color: var(--light);
    background: rgba(0, 0, 0, .15);
    border-color: rgba(255, 255, 255, .15);
}

.visiting-hours .table {
    color: var(--light);
    background: rgba(0, 0, 0, .15);
}

.visiting-hours .table td {
    padding: .5rem 1rem;
    border-color: rgba(255, 255, 255, .15);
}

.visiting-hours .table tr:last-child td {
    border: none;
}

/*** Home Animal Grid (Same as Animals Page Style) ***/

.animal-item {
    position: relative;
    display: block;
    overflow: hidden;
}

.animal-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

/* Zoom effect */
.animal-item:hover img {
    transform: scale(1.08);
}

/* Bottom gradient overlay */
.animal-item .animal-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75),
        rgba(0, 0, 0, 0)
    );
    display: flex;
    align-items: flex-end;
    opacity: 1; /* Always visible */
    transition: background 0.3s ease;
}

/* Optional: slightly darker on hover */
.animal-item:hover .animal-text {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85),
        rgba(0, 0, 0, 0)
    );
}

.animal-item .animal-text h5 {
    color: #ffffff;
    margin: 0;
    font-weight: 600;
}

/*** Membership ***/
.membership-item {
    padding: 45px 30px;
    color: #FFFFFF;
    background: rgba(0, 0, 0, .7);
}

.membership-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.membership-item .display-1 {
    color: transparent;
    -webkit-text-stroke: 2px var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    background: var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary);
    transform: scale(1);
}

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: var(--light) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item img {
    border-color: var(--primary) !important;
} 

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Footer ***/
.footer {
    background-color: var(--footer) !important;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

/* HERO FIX FOR MOBILE */
@media (max-width: 767px) {
  .header-carousel .owl-carousel-item {
    height: 60vh !important;
    min-height: 320px;
  }

  .header-carousel img {
    height: 100%;
    object-fit: cover;
  }
}

/* FORCE OWL VISIBILITY ON MOBILE */
@media (max-width: 767px) {
  .owl-carousel,
  .owl-stage,
  .owl-stage-outer,
  .owl-item {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* ================================
   Attraction Card
================================ */

.attraction-card {
    display: flex;
    height: auto;
}

.attraction-card .card {
    border-radius: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    overflow: hidden;
    height: auto;
    align-self: flex-start;
}

.attraction-card .card-img-top {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.attraction-card .card-body {
    padding-top: .5rem;
    padding-bottom: .75rem;
}

/* ================================
   Owl Item Fix
================================ */

.attractions-multi-carousel .owl-item {
    display: flex;
    padding-bottom: 14px;
}

/* ================================
   Custom Nav Buttons
================================ */

.attractions-controls .btn {
    min-width: 44px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .75rem;

    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    transition: 0.3s ease;
}

.attractions-controls .btn:hover {
    background: var(--primary);
    color: #fff;
}

.attractions-controls .btn:focus,
.attractions-controls .btn:active {
    outline: none !important;
    box-shadow: none !important;
}
  /* Responsive tweaks */
  @media (min-width: 992px) {
    .attraction-card .card-img-top { height: 350px; }
  }
  @media (max-width: 575.98px) {
    .attraction-card .card-img-top { height: 150px; }
  }

/* PROGRAMS MOBILE FIX */
@media (max-width: 767px) {
  .program-slide .row > div {
    width: 100% !important;
  }

  .program-slide .card-img-top {
    height: 180px !important;
  }
}

@media (min-width: 992px) {
  .navbar .dropdown-menu {
    min-width: 620px;
  }
}

.program-slide .card {
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.program-slide .card .card-body {
    padding-top: .75rem;
    padding-bottom: .75rem;
}

.program-slide .card-img-top {
    display: block;
}

/* Controls styling */
.program-controls .btn {
    min-width: 44px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .75rem;

    /* Added styling only */
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    transition: 0.3s ease;
}

.program-controls .btn:hover {
    background: var(--primary);
    color: #fff;
}

/* Remove Bootstrap focus glow */
.program-controls .btn:focus,
.program-controls .btn:active {
    outline: none !important;
    box-shadow: none !important;
}

.program-carousel .owl-item {
    padding-bottom: 14px;
}

/* Responsive tweaks */
@media (min-width: 992px) {
.attraction-card .card-img-top { height: 350px; }
}
@media (max-width: 575.98px) {
.attraction-card .card-img-top { height: 150px; }
}

.attraction-summary {
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;   /* EXACTLY 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Animal Grid Local Styles === */
.animal-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0px;
}

.animal-card img {
  width: 100%;
  height: 480px;              /* same size for all images */
  object-fit: cover;
  transition: transform 0.35s ease;
}

.animal-card:hover img {
  transform: scale(1.08);     /* slight zoom on hover */
}

.animal-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0)
  );
}

.animal-overlay span {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

/* === Mobile: force 1 column === */
@media (max-width: 575.98px) {
  .animal-grid > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}


/* =========================
   Zoo Live Gallery Style
========================= */

.zoo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Item */
.zoo-item {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  border-radius: 0px;
  background: #000;
}

/* Image wrapper */
.zoo-img {
  width: 100%;
  height: 360px;
  overflow: hidden;
}

.zoo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

/* Hover motion */
.zoo-item:hover img {
  transform: scale(1.12);
}

/* Soft overlay */
.zoo-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
}

.zoo-item:hover::after {
  opacity: 1;
}

/* Caption */
.zoo-caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: #fff;
  z-index: 2;
}

.zoo-caption h6 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.zoo-caption span {
  font-size: 12px;
  opacity: .85;
}

/* Responsive */
@media (max-width: 1199px) {
  .zoo-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .zoo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .zoo-img {
    height: 220px;
  }
}

@media (max-width: 575px) {
  .zoo-gallery {
    grid-template-columns: 1fr;
  }

  .zoo-img {
    height: 240px;
  }
}


/* FAQ */
/* Default question style */
.accordion-button {
    font-weight: 500;
    background-color: #ffffff;
    color: #333;
    transition: all 0.2s ease;
}

/* When accordion is open */
.accordion-button:not(.collapsed) {
    background-color: #f3f3f3;     /* light gray */
    color: #000;                  /* black */
    font-weight: 700;             /* bold */
    border-color: #ddd;
}

/* Remove Bootstrap glow completely */
.accordion-button:focus {
    box-shadow: none !important;
    outline: none;
}

/* Remove border highlight */
.accordion-button:focus-visible {
    outline: none;
}

/* Optional: smoother border style */
.accordion-item {
    border: 1px solid #e5e5e5;
}

.accordion-item:not(:last-child) {
    margin-bottom: 12px;
}
