/********** ABPA Template CSS (navy + gold) **********/
:root {
    --primary: #C9A227;
    --navy: #12163A;
    --secondary: #6B6F80;
    --light: #F6F3EC;
    --dark: #12163A;
}
body { font-family: 'Inter', sans-serif; color: var(--secondary); line-height: 1.7; }
h1, h2, h3, h4, h5, h6, .display-1, .display-5, .display-6 {
    font-family: 'Fraunces', Georgia, serif; font-weight: 600; color: var(--navy); letter-spacing: -.01em;
}
.text-primary { color: var(--primary) !important; }
.bg-primary { background: var(--primary) !important; }
.bg-dark { background: var(--navy) !important; }
.bg-light { background: var(--light) !important; }
.border-primary { border-color: var(--primary) !important; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.back-to-top { position: fixed; display: none; right: 30px; bottom: 30px; z-index: 99; }
.whatsapp-float { position: fixed; left: 24px; bottom: 24px; z-index: 99; background: #25D366; color: #fff; }

/*** 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; }

/*** Buttons ***/
.btn { font-weight: 500; transition: .4s; }
.btn.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--navy); }
.btn.btn-primary:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.btn-outline-light:hover { color: var(--navy); }
.btn-square, .btn-sm-square, .btn-lg-square { padding: 0; display: flex; align-items: center; justify-content: center; font-weight: normal; }
.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }

/*** Navbar ***/
.navbar { background: var(--navy); }
.navbar .navbar-nav .nav-link { margin-right: 30px; padding: 20px 0; color: #fff; font-weight: 500; outline: none; }
.navbar .navbar-nav .nav-link:hover, .navbar .navbar-nav .nav-link.active { color: var(--primary); }
.navbar.sticky-top { top: -100px; transition: .5s; }
@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link { margin-right: 0; padding: 8px 0; }
    .navbar .navbar-nav { margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, .15); }
}

/*** Header ***/
#header-carousel .carousel-caption {
    top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; background: rgba(18, 22, 58, .72); z-index: 1;
}
#header-carousel .carousel-control-prev, #header-carousel .carousel-control-next { width: 10%; }
#header-carousel .carousel-control-prev-icon, #header-carousel .carousel-control-next-icon { width: 3rem; height: 3rem; }
@media (max-width: 768px) {
    #header-carousel .carousel-item { position: relative; min-height: 500px; }
    #header-carousel .carousel-item img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
}
#header-carousel .carousel-indicators [data-bs-target] {
    width: 60px; height: 60px; text-indent: 0; margin-bottom: 15px;
    border: 2px solid var(--primary); border-radius: 60px; overflow: hidden;
}
#header-carousel .carousel-indicators [data-bs-target] img { width: 100%; height: 100%; object-fit: cover; }
.hero-lead { max-width: 640px; margin: 1.25rem auto 2rem; color: #fff; font-size: 1.15rem; }

/*** Section Title ***/
.section-title { font-family: 'Fraunces', serif; font-style: italic; font-size: 1.15rem; color: var(--primary); }

/*** 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: 4px solid var(--primary); border-radius: 6px; }
.img-border img { position: absolute; top: 3rem; left: 3rem; width: calc(100% - 3rem); height: calc(100% - 3rem); object-fit: cover; border-radius: 6px; }

/*** Facts ***/
.fact-item { transition: .5s; border-bottom: 3px solid var(--primary); }
.fact-item:hover { background: #fff !important; box-shadow: 0 0 45px rgba(18, 22, 58, .1); }

/*** Chapters ***/
.chapter-item { background: #fff; border: 1px solid #E7E2D4; border-left: 4px solid var(--primary); transition: .4s; }
.chapter-item:hover { box-shadow: 0 10px 35px rgba(18, 22, 58, .12); transform: translateY(-6px); }
.chapter-item h4 { font-size: 1.25rem; }
.chapter-item p { font-size: .95rem; margin: 0; }
.chapter-item .fa { color: var(--primary); }

/*** Benefits ***/
.benefit-list li { margin-bottom: .6rem; list-style: none; }
.benefit-list .fa-check { color: var(--primary); margin-right: .75rem; }

/*** Join band ***/
.join-band { background: linear-gradient(rgba(18, 22, 58, .92), rgba(18, 22, 58, .92)), url(../img/carousel-2.jpg) center / cover; }
.join-band h1 { color: #fff; }

/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item .avatar {
    width: 60px; height: 60px; border-radius: 50%; background: var(--navy); color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: 1.3rem;
}
.testimonial-carousel .owl-item .testimonial-item, .testimonial-carousel .owl-item .testimonial-item * { transition: .5s; }
.testimonial-carousel .owl-item.center .testimonial-item { background: var(--navy) !important; }
.testimonial-carousel .owl-item.center .testimonial-item * { color: #fff !important; }
.testimonial-carousel .owl-item.center .testimonial-item .avatar { background: var(--primary); color: var(--navy) !important; }
.testimonial-carousel .owl-nav { margin-top: 30px; display: flex; justify-content: center; }
.testimonial-carousel .owl-nav .owl-prev, .testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
    border: 1px solid #DEE2E6; border-radius: 50px; font-size: 18px; transition: .5s;
}
.testimonial-carousel .owl-nav .owl-prev:hover, .testimonial-carousel .owl-nav .owl-next:hover { color: var(--navy); border-color: var(--primary); background: var(--primary); }

/*** Footer ***/
.footer { color: #B9BCCB; }
.footer .btn.btn-link { display: block; margin-bottom: 5px; padding: 0; text-align: left; color: #B9BCCB; font-weight: normal; transition: .3s; }
.footer .btn.btn-link::before { position: relative; content: "\f105"; font-family: "Font Awesome 5 Free"; font-weight: 900; color: var(--primary); margin-right: 10px; }
.footer .btn.btn-link:hover { color: var(--primary); box-shadow: none; }
.footer .copyright { padding: 25px 0; font-size: 15px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer .copyright a { color: #fff; }
.footer .copyright a:hover { color: var(--primary); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/*** Blog ***/
.blog-card { background: #fff; border: 1px solid #E7E2D4; border-radius: 6px; overflow: hidden; height: 100%; transition: .4s; }
.blog-card:hover { box-shadow: 0 10px 35px rgba(18, 22, 58, .12); transform: translateY(-6px); }
.blog-card img { width: 100%; height: 220px; object-fit: cover; }
.blog-card .blog-body { padding: 1.5rem; }
.blog-meta { font-size: .85rem; color: var(--primary); font-weight: 600; margin-bottom: .5rem; }
.blog-card h4 { font-size: 1.2rem; }
.blog-card a.read-more { color: var(--navy); font-weight: 600; text-decoration: none; }
.blog-card a.read-more:hover { color: var(--primary); }

/*** JibuBot chat widget (front end) ***/
#chat-icon { position: fixed; bottom: 20px; right: 20px; width: 64px; height: 64px; background: linear-gradient(135deg, #2a3170, var(--navy)); display: flex; justify-content: center; align-items: center; border-radius: 50%; cursor: pointer; box-shadow: 0 6px 20px rgba(18, 22, 58, .45); animation: jbPulse 2s infinite; z-index: 9999; transition: transform .25s ease; border: 2px solid var(--primary); }
#chat-icon:hover { transform: scale(1.06); }
#chat-icon img { width: 38px; height: 38px; object-fit: contain; }
@keyframes jbPulse { 0% { box-shadow: 0 0 0 0 rgba(201, 162, 39, .5); } 70% { box-shadow: 0 0 0 14px rgba(201, 162, 39, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); } }
#chat-notification { position: absolute; top: -4px; right: -4px; background: #ff4757; color: #fff; font-size: 12px; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 0 0 2px #fff; }
.chat-popup { position: fixed; bottom: 96px; right: 20px; background: #fff; color: #2b2f38; padding: 12px 16px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); font-size: 13.5px; max-width: 220px; z-index: 9998; display: none; animation: jbFade .4s ease; }
@keyframes jbFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
#chat-container { position: fixed; bottom: 96px; right: 20px; width: 370px; max-width: calc(100vw - 40px); background: #fff; border-radius: 18px; box-shadow: 0 12px 40px rgba(18, 22, 58, .3); display: none; overflow: hidden; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .25s ease, transform .25s ease; z-index: 9999; }
#chat-container.open { opacity: 1; transform: translateY(0) scale(1); }
#chat-header { background: var(--navy); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 10px; border-bottom: 3px solid var(--primary); }
#chat-header img { width: 34px; height: 34px; object-fit: contain; background: rgba(255, 255, 255, .15); border-radius: 50%; padding: 5px; }
#chat-header .main-title { font-size: 15.5px; font-weight: 600; line-height: 1.25; }
#chat-header .sub-title { font-size: 11.5px; opacity: .85; }
.status-dot { width: 8px; height: 8px; background: #3cf07a; border-radius: 50%; display: inline-block; margin-right: 5px; }
#chat-box { height: 330px; overflow-y: auto; padding: 16px; background: #F6F3EC; display: flex; flex-direction: column; }
.jb-message { margin-bottom: 12px; padding: 10px 14px; border-radius: 14px; max-width: 78%; font-size: 13.5px; line-height: 1.45; white-space: pre-line; box-shadow: 0 2px 6px rgba(0, 0, 0, .05); animation: jbFade .25s ease; }
.user-message { background: var(--navy); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bot-row { display: flex; align-items: flex-end; gap: 8px; align-self: flex-start; max-width: 88%; }
.bot-row img { width: 24px; height: 24px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); flex-shrink: 0; }
.bot-message { background: #fff; color: #2b2f38; border-bottom-left-radius: 4px; border: 1px solid #e7ebf3; }
#chat-input-container { display: flex; align-items: center; padding: 12px; background: #fff; border-top: 1px solid #eef1f6; gap: 8px; }
#user-input { flex: 1; padding: 11px 16px; border: none; border-radius: 24px; outline: none; background: #F6F3EC; font-size: 13.5px; }
#user-input:focus { box-shadow: 0 0 0 2px rgba(201, 162, 39, .5); }
#send-btn { background: var(--primary); color: var(--navy); border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#send-btn svg { width: 16px; height: 16px; }
#chat-footer { text-align: center; font-size: 10.5px; color: #9aa3b5; padding: 6px 0 10px; background: #fff; }
#chat-footer strong { color: #4b5568; }
.typing .dots { display: flex; gap: 5px; padding: 2px 4px; }
.dot { width: 7px; height: 7px; background: var(--primary); border-radius: 50%; animation: jbBounce 1.4s infinite; }
.dot:nth-child(2) { animation-delay: .2s; } .dot:nth-child(3) { animation-delay: .4s; }
@keyframes jbBounce { 0%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }

/*** Membership plans ***/
.plan-card { background: #fff; border: 1px solid #E7E2D4; border-radius: 8px; padding: 2.25rem 2rem; height: 100%; position: relative; transition: .4s; display: flex; flex-direction: column; }
.plan-card:hover { box-shadow: 0 10px 35px rgba(18, 22, 58, .12); transform: translateY(-6px); }
.plan-card.plan-featured { background: var(--navy); border-color: var(--navy); }
.plan-card.plan-featured, .plan-card.plan-featured h3, .plan-card.plan-featured .price, .plan-card.plan-featured li { color: #fff; }
.plan-card .plan-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--navy); font-size: .8rem; font-weight: 600; padding: 4px 16px; border-radius: 20px; }
.plan-card .price { font-family: 'Fraunces', serif; font-size: 2.6rem; font-weight: 600; color: var(--navy); line-height: 1.1; margin: .75rem 0 .25rem; }
.plan-card .price small { font-size: 1rem; font-weight: 400; font-family: 'Inter', sans-serif; }
.plan-card ul { padding: 0; margin: 1.25rem 0 1.75rem; flex-grow: 1; }
.plan-card li { list-style: none; margin-bottom: .6rem; }
.plan-card li .fa-check { color: var(--primary); margin-right: .6rem; }

/*** What you get ***/
.value-item .fa { color: var(--primary); }
.value-item h5 { font-family: 'Fraunces', serif; }

/*** Contact ***/
.contact-form .form-control, .contact-form .form-select { padding: .9rem 1rem; border-color: #E7E2D4; }
.contact-form .form-control:focus, .contact-form .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(201, 162, 39, .25); }

/*** Inner page banner ***/
.page-banner { background: linear-gradient(rgba(18, 22, 58, .9), rgba(18, 22, 58, .9)), url(../img/carousel-1.jpg) center / cover; padding: 4.5rem 0; text-align: center; }
.page-banner h1 { color: #fff; margin-bottom: .75rem; }
.page-banner .breadcrumb { justify-content: center; margin: 0; }
.page-banner .breadcrumb a { color: var(--primary); text-decoration: none; }
.page-banner .breadcrumb-item.active, .page-banner .breadcrumb-item + .breadcrumb-item::before { color: #fff; }

/*** Team ***/
.team-item { background: #fff; border: 1px solid #E7E2D4; border-radius: 6px; box-shadow: 0 0 45px rgba(18, 22, 58, .06); }
.team-item .team-text { position: relative; height: 65px; overflow: hidden; }
.team-item .team-title { position: absolute; width: 100%; height: 100%; top: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: .5s; }
.team-item:hover .team-title { top: -65px; }
.team-item .team-social { position: absolute; width: 100%; height: 100%; top: 65px; left: 0; display: flex; align-items: center; justify-content: center; background: #fff; transition: .5s; }
.team-item .team-social .btn { margin: 0 3px; }
.team-item:hover .team-social { top: 0; }

/*** Events, filters, FAQ ***/
.date-badge { background: var(--navy); color: var(--primary); text-align: center; border-radius: 6px; padding: .6rem .9rem; min-width: 72px; font-family: 'Fraunces', serif; line-height: 1.1; }
.date-badge strong { display: block; font-size: 1.8rem; color: #fff; }
.filter-pill { border: 1px solid #E7E2D4; background: #fff; color: var(--navy); border-radius: 30px; padding: .45rem 1.2rem; margin: 0 .25rem .5rem; font-weight: 500; transition: .3s; }
.filter-pill.active, .filter-pill:hover { background: var(--primary); border-color: var(--primary); }
.accordion-button:not(.collapsed) { background: var(--light); color: var(--navy); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(201, 162, 39, .25); }
.accordion-item h2 { margin: 0; font-size: 1rem; }
.chapter-num { font-family: 'Fraunces', serif; color: var(--primary); font-size: 1.1rem; }
.tag-soft { display: inline-block; background: var(--light); color: var(--navy); font-size: .78rem; padding: 2px 10px; border-radius: 20px; }
