/********** Template CSS **********/

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

.fw-medium {
    font-weight: 600;
}

.mt-6 {
    margin-top: 5rem;
}

.mb-6 {
    margin-bottom: 5rem;
}

.pt-6 {
    padding-top: 5rem;
}

.pb-6 {
    padding-bottom: 5rem;
}


/*** 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 {
    transition: .5s;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--bs-light);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--bs-dark);
}

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

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

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

.btn-xl-square {
    width: 60px;
    height: 60px;
}

.btn-xxl-square {
    width: 75px;
    height: 75px;
}

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

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

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--bs-dark);
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 600;
    outline: none;
}

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

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

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

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

@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 ***/
.carousel .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    text-align: left;
    background: rgba(0, 0, 0, .7);
    padding: 3rem;
    padding-left: 11rem;
    z-index: 1;
}

.carousel .carousel-indicators {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 80px;
    flex-direction: column;
    margin: 0;
    margin-left: 3rem;
}

.carousel .carousel-indicators [data-bs-target] {
    width: 70px;
    height: 70px;
    text-indent: 0;
    margin: 5px 0;
    border: 2px solid #FFFFFF;
    overflow: hidden;
}

.carousel .carousel-indicators [data-bs-target] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .carousel .carousel-item {
        position: relative;
        min-height: 600px;
    }
    
    .carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .carousel .carousel-indicators [data-bs-target] {
        width: 60px;
        height: 60px;
    }

    .carousel .carousel-caption {
        padding-left: 10rem;
    }
}

@media (max-width: 768px) {
    .carousel .carousel-item {
        min-height: 500px;
    }

    .carousel .carousel-indicators [data-bs-target] {
        width: 50px;
        height: 50px;
    }

    .carousel .carousel-caption {
        padding-left: 9rem;
    }
}

@media (min-width: 1200px) {
    .carousel .carousel-item .display-1 {
        font-size: 7rem;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(31, 29, 29, 0.7)), url(../img/carousel/carousel-2.jpg) center center no-repeat;
    background-size: cover;
}


/*** About ***/
.about-img {
    position: relative;
    padding-left: 45px;
}

.about-img::before {
    position: absolute;
    content: "";
    width: 200px;
    height: 300px;
    top: 0;
    left: 0;
    border: 5px solid var(--bs-primary);
    animation: animateUpDown 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes animateUpDown { 
    0% { 
        top: -25px;
    }
    50% { 
        top: -45px;
    }
    100% { 
        top: -25px;
    } 
}


/*** Features ***/
.feature {
    background: linear-gradient(to right, rgb(0 0 0 / 89%), rgb(0 0 0 / 96%) 50%), url(../img/carousel/carousel-1.jpg) left center no-repeat;
    background-size: cover;
}

.feature-row {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.feature-item {
    border-color: rgba(0, 0, 0, .03) !important;
}

.feature-icon {
    position: relative;
    transition: .5s;
}

.feature-item:hover .feature-icon {
    margin-left: 3rem;
}

.feature-item a::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 1px;
    background: var(--bs-secondary);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: -1;
}

.feature-item a:hover {
    color: var(--bs-primary) !important;
}

.feature-item a:hover::after {
    background: var(--bs-primary);
}

.experience .progress {
    height: 5px;
}

.experience .progress .progress-bar {
    width: 0px;
    transition: 3s;
}


/*** Service ***/
.service .service-item {
    position: relative;
    margin-top: 45px;
}

.service .service-inner {
    position: relative;
    height: 100%;
    margin-top: 45px;
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.service .service-inner::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    left: 0;
    bottom: 0;
    transition: 1s;
    background: var(--bs-primary);
}

.service .service-inner:hover::before {
    height: 100%;
    top: 0;
}

.service .service-item img {
    margin-top: -45px;
    padding-left: 45px;
}

.service .service-item * {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.service .service-item:hover h5,
.service .service-item:hover p {
    color: var(--bs-white);
}

.service .service-item:hover a {
    padding-left: 45px !important;
}


/*** Appoinment ***/
.appoinment {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/gallery4.jpg) left center no-repeat;
    background-size: cover;
}


/*** Team ***/
.team .team-item {
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.team .team-item .team-social {
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    transition: .5s;
    background: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team .team-item:hover .team-social {
    width: 100%;
    left: 0;
}

.team .team-item .team-social .btn {
    opacity: 0;
    transition: .5s;
}

.team .team-item:hover .team-social .btn {
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-img {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.testimonial-img div {
    position: absolute;
    width: 100px;
    height: 100px;
    animation-duration: 5s;
}

.testimonial-img div:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: .1s;
}

.testimonial-img div:nth-child(2) {
    top: 60%;
    left: 20%;
    animation-delay: .4s;
}

.testimonial-img div:nth-child(3) {
    top: 20%;
    left: 60%;
    animation-delay: .7s;
}

.testimonial-img div:nth-child(4) {
    bottom: 10%;
    right: 10%;
    animation-delay: 1s;
}

.testimonial-img div::after {
    position: absolute;
    content: "";
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    box-shadow: 0 0 10px 10px var(--bs-white) inset;
    z-index: 1;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 15px;
    display: flex;
}

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

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


/*** Contact ***/
@media (min-width: 992px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 0px;
        height: 100%;
        top: 0;
        left: 50%;
        border-left: 1px dashed rgba(255, 255, 255, .2);
    }
}

@media (max-width: 991.98px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 100%;
        height: 0px;
        top: 50%;
        left: 0;
        border-top: 1px dashed rgba(255, 255, 255, .2);
    }
}


/*** Appoinment ***/
.newsletter {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/carousel-3.jpg) left center no-repeat;
    background-size: cover;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--bs-secondary);
    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;
    color: var(--bs-primary);
    margin-right: 10px;
}

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

.copyright {
    background: #222222;
}

.copyright a {
    color: var(--bs-white);
}

.copyright a:hover {
    color: var(--bs-primary);
}
.logo_write {
   margin-left: -30px;

}

:root{
  /* ensure var exists; your site likely already defines this */
  --apb-card-color: var(--bs-light, #ffffff);
  --apb-text-dark: #111114;
  --apb-accent: #ffb84d;
}



.apb-contact {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  
  color: var(--bs-light);
}

.apb-bg {
  position: absolute;
  inset: 0;
  
  animation: glowMove 12s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes glowMove {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.05) translateY(-2%); }
}

/* Cards */
.apb-card {
  background: rgba(255,255,255,0.95);
  color: #111;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  transition: all .4s ease;
  position: relative;
  overflow: hidden;
}
.apb-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}
.apb-card::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(25deg);
  transition: 0.8s;
}
.apb-card:hover::after {
  left: 100%;
}

/* Icon */
.apb-icon {
  font-size: 2rem;
  color: var(--bs-light);
  background: linear-gradient(135deg, #ff944d, #ffbb66);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 6px 18px rgba(255,120,40,0.4);
}

/* Links inside cards */
.apb-link {
  color: #111;
  text-decoration: none;
  font-weight: 600;
}
.apb-link:hover {
  color: #ff944d;
}
:root{
  /* ensure var exists; your site likely already defines this */
  --apb-card-color: var(--bs-light, #ffffff);
  --apb-text-dark: #111114;
  --apb-accent: #ffb84d;
}

/* Section wrapper */
.apb-feature {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  color: var(--apb-card-color);
  color: var(--bs-light);
}

/* Animated "black fire" background */
.apb-fire-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  
  mix-blend-mode: multiply;
  animation: embers 8s ease-in-out infinite;
  filter: contrast(1.05) saturate(1.2) blur(10px);
}

/* extra flicker layers using pseudo elements */
.apb-fire-bg::before,
.apb-fire-bg::after{
  content: "";
  position: absolute;
  inset: -20% -10% -10% -10%;
  z-index: 0;
  background-repeat: no-repeat;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.5;
  filter: blur(30px) saturate(1.2);
}
.apb-fire-bg::before{
  background:
    radial-gradient(600px 200px at 15% 85%, rgba(255,90,20,0.12), transparent 20%),
    radial-gradient(400px 140px at 30% 70%, rgba(255,160,60,0.08), transparent 18%);
  animation: flickerA 4.5s linear infinite;
}
.apb-fire-bg::after{
  background:
    radial-gradient(500px 180px at 85% 75%, rgba(255,160,60,0.08), transparent 18%),
    radial-gradient(300px 100px at 70% 60%, rgba(255,100,30,0.06), transparent 18%);
  animation: flickerB 5.5s linear infinite;
}

/* container positioning */
.apb-content{
  position: relative;
  z-index: 2;
}

/* left column content */
.apb-left{
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
}
.apb-title{
  font-size: clamp(1.6rem, 2.5vw, 2.8rem);
  margin: 0 0 0.75rem 0;
  color: var(--apb-card-color);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.apb-sub{
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 760px;
  line-height: 1.6;
  font-size: 1rem;
}

/* cards grid */
.apb-cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

/* single card */
.apb-card{
  background: var(--apb-card-color);
  color: var(--apb-text-dark);
  border-radius: 14px;
  padding: 1.6rem;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.45),
    0 2px 8px rgba(0,0,0,0.25);
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.2,.9,.3,1), box-shadow .35s;
  position: relative;
  overflow: visible;
  border: 1px solid rgba(255,255,255,0.06);
  cursor: default;
}

/* inner content has a subtle "card tilt" shine */
.apb-card .card-inner{
  position: relative;
  z-index: 2;
}
.apb-card h3{
  margin: 0 0 .4rem 0;
  font-size: 1.05rem;
  letter-spacing: .01em;
}
.apb-card p{
  margin: 0 0 1rem 0;
  font-size: 0.92rem;
  color: rgba(17,17,20,0.9);
}
.apb-chip{
  display: inline-block;
  font-size: .75rem;
  padding: .28rem .6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,180,90,0.18), rgba(255,140,40,0.12));
  color: rgba(17,17,20,0.9);
  font-weight: 600;
  letter-spacing: .03em;
}

/* hover/keyboard focus interactions */
.apb-card:hover,
.apb-card:focus{
  transform: translateY(-10px) rotateX(2deg) scale(1.01);
  box-shadow:
    0 22px 50px rgba(0,0,0,0.6),
    0 6px 18px rgba(0,0,0,0.45);
  outline: none;
}

/* subtle shine animation across card */
.apb-card::after{
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 60%;
  height: 180%;
  background: linear-gradient(120deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.0) 100%);
  transform: skewX(-18deg) translateX(-120%);
  transition: transform .9s cubic-bezier(.2,.9,.3,1);
  pointer-events: none;
  z-index: 1;
}
.apb-card:hover::after,
.apb-card:focus::after{
  transform: skewX(-18deg) translateX(180%);
}

/* small floating spark effect on top-right of each card */
.apb-card::before{
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,210,120,1) 0%, rgba(255,120,30,0.8) 60%, transparent 100%);
  filter: blur(6px) saturate(1.2);
  opacity: .9;
  animation: spark 3s ease-in-out infinite;
}

/* Keyframes: background embers */
@keyframes embers {
  0% { transform: translateY(0) scale(1); opacity: 0.95; }
  50% { transform: translateY(-4%) scale(1.02); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 0.95; }
}
@keyframes flickerA {
  0% { opacity:.55; transform: translateX(0) scale(1); }
  25% { opacity:.42; transform: translateX(-3%) scale(1.02); }
  50% { opacity:.7; transform: translateX(2%) scale(1.01); }
  75% { opacity:.45; transform: translateX(-1%) scale(.99); }
  100% { opacity:.55; transform: translateX(0) scale(1); }
}
@keyframes flickerB {
  0% { opacity:.45; transform: translateX(0) scale(1); }
  30% { opacity:.65; transform: translateX(2%) scale(1.02); }
  60% { opacity:.4; transform: translateX(-2%) scale(.98); }
  100% { opacity:.45; transform: translateX(0) scale(1); }
}
@keyframes spark {
  0% { transform: translateY(0) scale(1); opacity: .95; }
  30% { transform: translateY(-6px) scale(.9); opacity: .6; }
  60% { transform: translateY(-12px) scale(.6); opacity: .3; }
  100% { transform: translateY(0) scale(1); opacity: .95; }
}

/* responsive tweaks */
@media (max-width: 768px){
  .apb-feature { padding: 3.5rem 0; }
  .apb-sub { font-size: .95rem; }
  .apb-cards { gap: 1rem; }
  .apb-card { padding: 1.2rem; border-radius: 12px; }
}

/* Appointment Section Background */
.apb-contact {
  position: relative;
  overflow: hidden;
}

.apb-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #CE9233, #e0b96c, #CE9233);
  background-size: 400% 400%;
  animation: apbBackground 12s ease infinite;
  opacity: 0.95;
  z-index: 1;
}

/* Animation for flowing gold effect */
@keyframes apbBackground {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Ensure content stays on top */
.apb-contact .container {
  position: relative;
  z-index: 2;
}

/* Features Section Background with Black + Gold Animation */
.apb-feature {
  position: relative;
  overflow: hidden;
}

.apb-fire-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #000000, #CE9233, #000000);
  background-size: 400% 400%;
  animation: apbFeatureBg 12s ease infinite;
  opacity: 0.95;
  z-index: 1;
}

/* Animation for flowing black-gold effect */
@keyframes apbFeatureBg {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Ensure content stays on top */
.apb-feature .apb-content {
  position: relative;
  z-index: 2;
}








:root{
  /* ensure var exists; your site likely already defines this */
  --apb-card-color: var(--bs-light, #ffffff);
  --apb-text-dark: #111114;
  --apb-accent: #ffb84d;
}

/* Section wrapper */
.apb-feature {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  color: var(--apb-card-color);
}

/* Animated "black fire" background */
.apb-fire-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1200px 450px at 10% 80%, rgba(255,140,60,0.08), transparent 20%),
    radial-gradient(1000px 350px at 90% 70%, rgba(255,200,90,0.06), transparent 15%),
    linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0.95));
  mix-blend-mode: multiply;
  animation: embers 8s ease-in-out infinite;
  filter: contrast(1.05) saturate(1.2) blur(10px);
}

/* extra flicker layers using pseudo elements */
.apb-fire-bg::before,
.apb-fire-bg::after{
  content: "";
  position: absolute;
  inset: -20% -10% -10% -10%;
  z-index: 0;
  background-repeat: no-repeat;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.5;
  filter: blur(30px) saturate(1.2);
}
.apb-fire-bg::before{
  background:
    radial-gradient(600px 200px at 15% 85%, rgba(255,90,20,0.12), transparent 20%),
    radial-gradient(400px 140px at 30% 70%, rgba(255,160,60,0.08), transparent 18%);
  animation: flickerA 4.5s linear infinite;
}
.apb-fire-bg::after{
  background:
    radial-gradient(500px 180px at 85% 75%, rgba(255,160,60,0.08), transparent 18%),
    radial-gradient(300px 100px at 70% 60%, rgba(255,100,30,0.06), transparent 18%);
  animation: flickerB 5.5s linear infinite;
}

/* container positioning */
.apb-content{
  position: relative;
  z-index: 2;
}

/* left column content */
.apb-left{
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
}
.apb-title{
  font-size: clamp(1.6rem, 2.5vw, 2.8rem);
  margin: 0 0 0.75rem 0;
  color: var(--apb-card-color);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.apb-sub{
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 760px;
  line-height: 1.6;
  font-size: 1rem;
}

/* cards grid */
.apb-cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

/* single card */
.apb-card{
  background: var(--apb-card-color);
  color: var(--apb-text-dark);
  border-radius: 14px;
  padding: 1.6rem;
  box-shadow:
    0 10px 30px rgb(131, 124, 33),
    0 2px 8px rgba(0,0,0,0.25);
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.2,.9,.3,1), box-shadow .35s;
  position: relative;
  overflow: visible;
  border: 1px solid rgba(255,255,255,0.06);
  cursor: default;
}

/* inner content has a subtle "card tilt" shine */
.apb-card .card-inner{
  position: relative;
  z-index: 2;
}
.apb-card h3{
  margin: 0 0 .4rem 0;
  font-size: 1.05rem;
  letter-spacing: .01em;
}
.apb-card p{
  margin: 0 0 1rem 0;
  font-size: 0.92rem;
  color: rgba(17,17,20,0.9);
}
.apb-chip{
  display: inline-block;
  font-size: .75rem;
  padding: .28rem .6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,180,90,0.18), rgba(255,140,40,0.12));
  color: rgba(17,17,20,0.9);
  font-weight: 600;
  letter-spacing: .03em;
}

/* hover/keyboard focus interactions */
.apb-card:hover,
.apb-card:focus{
  transform: translateY(-10px) rotateX(2deg) scale(1.01);
  box-shadow:
    0 22px 50px rgba(0,0,0,0.6),
    0 6px 18px rgba(0,0,0,0.45);
  outline: none;
}

/* subtle shine animation across card */
.apb-card::after{
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 60%;
  height: 180%;
  background: linear-gradient(120deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.0) 100%);
  transform: skewX(-18deg) translateX(-120%);
  transition: transform .9s cubic-bezier(.2,.9,.3,1);
  pointer-events: none;
  z-index: 1;
}
.apb-card:hover::after,
.apb-card:focus::after{
  transform: skewX(-18deg) translateX(180%);
}

/* small floating spark effect on top-right of each card */
.apb-card::before{
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,210,120,1) 0%, rgba(255,120,30,0.8) 60%, transparent 100%);
  filter: blur(6px) saturate(1.2);
  opacity: .9;
  animation: spark 3s ease-in-out infinite;
}

/* Keyframes: background embers */
@keyframes embers {
  0% { transform: translateY(0) scale(1); opacity: 0.95; }
  50% { transform: translateY(-4%) scale(1.02); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 0.95; }
}
@keyframes flickerA {
  0% { opacity:.55; transform: translateX(0) scale(1); }
  25% { opacity:.42; transform: translateX(-3%) scale(1.02); }
  50% { opacity:.7; transform: translateX(2%) scale(1.01); }
  75% { opacity:.45; transform: translateX(-1%) scale(.99); }
  100% { opacity:.55; transform: translateX(0) scale(1); }
}
@keyframes flickerB {
  0% { opacity:.45; transform: translateX(0) scale(1); }
  30% { opacity:.65; transform: translateX(2%) scale(1.02); }
  60% { opacity:.4; transform: translateX(-2%) scale(.98); }
  100% { opacity:.45; transform: translateX(0) scale(1); }
}
@keyframes spark {
  0% { transform: translateY(0) scale(1); opacity: .95; }
  30% { transform: translateY(-6px) scale(.9); opacity: .6; }
  60% { transform: translateY(-12px) scale(.6); opacity: .3; }
  100% { transform: translateY(0) scale(1); opacity: .95; }
}

/* responsive tweaks */
@media (max-width: 768px){
  .apb-feature { padding: 3.5rem 0; }
  .apb-sub { font-size: .95rem; }
  .apb-cards { gap: 1rem; }
  .apb-card { padding: 1.2rem; border-radius: 12px; }
}

