/* cmsms stylesheet: ch2024_overrides modified: Saturday, June 20, 2026 4:41:46 PM */
/* ======================================================
   CONSERVATOIRE DE HUY — 2026 Visual Refinement
   Builds on existing palette: --primary #F31CB2, --dark
   ====================================================== */

/* ---------- Global Smoothness ---------- */
*, *::before, *::after {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    letter-spacing: 0.015em;
    line-height: 1.7;
}

/* Improve image rendering globally */
img {
    image-rendering: auto;
}

/* ---------- Topbar Refinement ---------- */
.container-fluid.bg-light.p-0 > .row {
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.container-fluid.bg-light.p-0 .btn-primary.btn-sm {
    border-radius: 20px;
    padding: 4px 18px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(243, 28, 178, 0.25);
}

.container-fluid.bg-light.p-0 .btn-primary.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(243, 28, 178, 0.35);
}

.container-fluid.bg-light.p-0 .btn-square {
    border-radius: 50% !important;
    width: 34px;
    height: 34px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.container-fluid.bg-light.p-0 .btn-square:hover {
    background-color: var(--primary) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 28, 178, 0.3);
}

/* ---------- Carousel Refinement ---------- */
#header-carousel .carousel-item img {
    filter: brightness(0.92);
    transition: transform 8s ease-out, filter 1s ease;
}

#header-carousel .carousel-item.active img {
    transform: scale(1.04);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.2rem !important;
    height: 3.2rem !important;
    border: none !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50% !important;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--primary) !important;
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(243, 28, 178, 0.4);
}

/* Carousel indicators as dots if used */
#header-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

#header-carousel .carousel-indicators .active {
    background: var(--primary);
    transform: scale(1.3);
}

/* ---------- Section Titles Refinement ---------- */
.border-start.border-5.border-primary {
    border-image: linear-gradient(to bottom, #F31CB2, #e8139e) 1 !important;
    border-width: 4px !important;
    border-style: solid !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

.border-start.border-5.border-primary h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--primary) !important;
    opacity: 0.85;
}

.border-start.border-5.border-primary .display-6 {
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* White text on dark backgrounds — keep readable */
.appointment .border-start.border-5.border-primary .display-6,
.text-white.display-6 {
    background: none !important;
    -webkit-text-fill-color: #fff !important;
}

/* ---------- About Section ---------- */
.container-xxl.py-5 .position-relative.overflow-hidden {
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.container-xxl.py-5 .position-relative.overflow-hidden:hover {
    transform: translateY(-4px);
}

.container-xxl.py-5 .position-relative.overflow-hidden img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.container-xxl.py-5 .position-relative.overflow-hidden:hover img {
    transform: scale(1.03);
}

/* About feature checks */
.fa-check.fa-2x.text-primary {
    background: linear-gradient(135deg, rgba(243, 28, 178, 0.1), rgba(243, 28, 178, 0.05));
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1rem !important;
    transition: all 0.3s ease;
}

.col-sm-4.d-flex:hover .fa-check.fa-2x.text-primary {
    background: var(--primary);
    color: #fff !important;
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(243, 28, 178, 0.3);
}

/* ---------- Facts Section (4-column images) ---------- */
.facts-overlay {
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(41, 19, 31, 0.4) 30%,
        rgba(41, 19, 31, 0.85) 100%
    ) !important;
    padding: 30px 28px !important;
    transition: background 0.5s ease;
}

.col-xl-3.col-sm-6 .position-relative:hover .facts-overlay {
    background: linear-gradient(
        180deg,
        rgba(243, 28, 178, 0.05) 0%,
        rgba(41, 19, 31, 0.6) 20%,
        rgba(41, 19, 31, 0.92) 100%
    ) !important;
}

.col-xl-3.col-sm-6 .position-relative {
    overflow: hidden;
}

.col-xl-3.col-sm-6 .position-relative > img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.col-xl-3.col-sm-6 .position-relative:hover > img {
    transform: scale(1.08);
}

.facts-overlay h1 {
    font-size: 90px !important;
    opacity: 0.2;
    transition: opacity 0.4s ease;
}

.col-xl-3.col-sm-6 .position-relative:hover .facts-overlay h1 {
    opacity: 0.35;
}

.facts-overlay h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.facts-overlay p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.85;
}

.facts-overlay a {
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem !important;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.facts-overlay a:hover {
    letter-spacing: 0.08em;
}

.facts-overlay a .fa-arrow-right {
    transition: transform 0.3s ease;
}

.facts-overlay a:hover .fa-arrow-right {
    transform: translateX(4px);
}

/* ---------- Events / Service Cards ---------- */
.service-item {
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(243, 28, 178, 0.12);
}

.service-item img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item:hover img {
    transform: scale(1.05);
}

.service-item .service-text {
    border-radius: 0 0 16px 16px;
}

.service-text::before {
    border-radius: 0 0 16px 16px !important;
}

.service-text h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
}

.service-text a.small {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.service-text a.small .fa-arrow-right {
    transition: transform 0.3s ease;
}

.service-text a.small:hover .fa-arrow-right {
    transform: translateX(4px);
}

/* ---------- Appointment / Contact Section ---------- */
.appointment {
    background-attachment: fixed;
    position: relative;
}

.appointment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(41, 19, 31, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.appointment .form-control {
    border-radius: 10px !important;
    padding: 14px 18px;
    background-color: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    transition: all 0.3s ease;
}

.appointment .form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(243, 28, 178, 0.15) !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
}

.appointment .form-floating > label {
    color: rgba(255, 255, 255, 0.6);
}

.appointment .btn-primary {
    border-radius: 10px !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.appointment .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 28, 178, 0.35) !important;
}

/* ---------- Testimonials ---------- */
.testimonial-item {
    padding: 30px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.testimonial-item:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.testimonial-item img {
    border-radius: 50% !important;
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
    border: 3px solid rgba(243, 28, 178, 0.15);
    transition: border-color 0.3s ease;
}

.testimonial-item:hover img {
    border-color: var(--primary);
}

.testimonial-item .bg-primary {
    border-radius: 3px;
    height: 3px !important;
    width: 40px !important;
    background: linear-gradient(90deg, var(--primary), #e8139e) !important;
}

.testimonial-item p.fs-5 {
    font-size: 1rem !important;
    line-height: 1.7;
    color: #555;
    font-style: italic;
    position: relative;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(243, 28, 178, 0.3);
}

/* Stats counters */
.col-sm-6 .d-flex.align-items-center h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #e8139e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.col-sm-6 .fa-users.fa-2x,
.col-sm-6 .fa-check.fa-2x:not(.flex-shrink-0.me-3) {
    color: var(--primary) !important;
}

/* ---------- Footer Refinement ---------- */
.footer {
    background: linear-gradient(180deg, rgba(41, 19, 31, 1) 0%, rgba(30, 12, 22, 1) 100%) !important;
}

.footer .col-lg-3 img.img-fluid {
    max-width: 180px;
    margin-bottom: 20px;
    transition: opacity 0.3s ease;
}

.footer .col-lg-3 img.img-fluid:hover {
    opacity: 0.85;
}

.footer h4.text-light {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px !important;
}

.footer h4.text-light::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer .btn-square.btn-outline-primary {
    border-radius: 50% !important;
    width: 36px;
    height: 36px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-color: rgba(243, 28, 178, 0.4) !important;
}

.footer .btn-square.btn-outline-primary:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(243, 28, 178, 0.3);
}

.footer .btn.btn-link {
    transition: all 0.3s ease;
    padding-left: 0;
    font-size: 0.9rem;
}

.footer .btn.btn-link:hover {
    padding-left: 8px;
    color: var(--primary) !important;
}

.footer .btn.btn-link::before {
    transition: all 0.3s ease;
}

.footer .btn.btn-link:hover::before {
    color: var(--primary);
    margin-right: 14px;
}

/* Newsletter input */
.footer .position-relative input.form-control {
    border-radius: 30px !important;
    padding: 12px 20px;
    background-color: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #fff;
    transition: all 0.3s ease;
}

.footer .position-relative input.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(243, 28, 178, 0.12) !important;
}

.footer .position-relative .btn-primary {
    border-radius: 24px !important;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    font-size: 0.82rem;
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
    border-radius: 50% !important;
    width: 46px !important;
    height: 46px !important;
    box-shadow: 0 4px 20px rgba(243, 28, 178, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(243, 28, 178, 0.4);
}

/* ---------- WOW Animation Refinements ---------- */
.wow {
    animation-duration: 0.8s;
}

/* ---------- Buttons Global Refinement ---------- */
.btn {
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    box-shadow: 0 3px 12px rgba(243, 28, 178, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(243, 28, 178, 0.3) !important;
}

/* ---------- Navbar refinement ---------- */
@media (min-width: 992px) {
    .navbar {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .navbar .navbar-nav .nav-link {
        font-weight: 500;
        font-size: 0.92rem;
        letter-spacing: 0.02em;
        position: relative;
        transition: all 0.3s ease;
    }

    .navbar .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: 20px;
        left: 50%;
        width: 0;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(-50%);
    }

    .navbar .navbar-nav .nav-link:hover::after,
    .navbar .navbar-nav .nav-link.active::after {
        width: 60%;
    }

    /* Prevent conflict with dropdown toggle */
    .navbar .navbar-nav .dropdown-toggle::after {
        position: static;
        width: auto;
        height: auto;
        background: none;
        transform: none;
        bottom: auto;
        left: auto;
    }
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
    .border-start.border-5.border-primary .display-6 {
        font-size: 1.5rem;
    }

    .facts-overlay h1 {
        font-size: 60px !important;
    }

    .facts-overlay p {
        font-size: 0.82rem;
    }

    .service-item:hover {
        transform: translateY(-4px);
    }

    .testimonial-item {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .container-fluid.bg-light.p-0 > .row {
        font-size: 0.8rem;
    }
}

/* ---------- Selection Color ---------- */
::selection {
    background: rgba(243, 28, 178, 0.2);
    color: inherit;
}

::-moz-selection {
    background: rgba(243, 28, 178, 0.2);
    color: inherit;
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
    background: linear-gradient(
        135deg,
        rgba(41, 19, 31, 0.85) 0%,
        rgba(41, 19, 31, 0.7) 50%,
        rgba(243, 28, 178, 0.25) 100%
    ), url(uploads/ch2024/images/carousel-0.jpg) center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.page-header .display-4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.page-header .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.page-header .breadcrumb-item a:hover {
    color: #fff !important;
}

.page-header .breadcrumb-item.active {
    color: var(--primary) !important;
    font-weight: 600;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: rgba(255, 255, 255, 0.5);
}

/* Content area for inner pages */
.container-xxl.py-5 > .container > .row > .col-lg-10 {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.container-xxl.py-5 > .container > .row > .col-lg-10 h2,
.container-xxl.py-5 > .container > .row > .col-lg-10 h3,
.container-xxl.py-5 > .container > .row > .col-lg-10 h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    color: #1a1a2e;
}

.container-xxl.py-5 > .container > .row > .col-lg-10 img {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin: 1em 0;
}

@media (max-width: 768px) {
    .page-header .display-4 {
        font-size: 1.75rem;
    }
}

/* ---------- Scrollbar (Webkit) ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f8f9fa;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), #c4149a);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
