﻿:root {
    --brand: #6f42c1;
    --brand-2: #20c997;
    --ink: #111827;
}

body {
    color: var(--ink);
}

.navbar {
	--bs-navbar-active-color: #6F42C1;	
	--bs-nav-link-font-size: 14pt;
}

.navbar-nav {
	margin: 0 auto;
}

.navbar-brand span {
    color: var(--brand);
}

.btn-brand {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: #5a33a3;
    --bs-btn-hover-border-color: #5a33a3;
    --bs-btn-color: #fff;
}

footer {
    background: #0b1220;
    color: rgba(255,255,255,.85);
}

    footer a {
        color: rgba(255,255,255,.85);
        text-decoration: none;
    }

        footer a:hover {
            color: #fff;
        }


/* Back to top button (solid color reveal) */
#backToTop {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Force solid brand colour even during animation */
    background-color: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
    /* Hidden state: clipped away + slightly down */
    clip-path: circle(0% at 50% 50%);
    transform: translateY(10px);
    visibility: hidden;
    pointer-events: none;
    transition: clip-path 0.28s ease, transform 0.28s ease, visibility 0s linear 0.28s;
    z-index: 1030;
}

    #backToTop.show {
        clip-path: circle(75% at 50% 50%); /* reveal */
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
        transition: clip-path 0.28s ease, transform 0.28s ease;
    }

/* Breadcrumb styling */
.breadcrumb {
    background: transparent;
    font-weight: 600;
    margin-bottom: 0; /* ensure no extra offset so bottom alignment works */
}

    .breadcrumb a {
        color: var(--brand);
        text-decoration: none;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

.breadcrumb-item.active {
    color: rgba(17,24,39,.6);
}

/* New: breadcrumb full-width background */
.breadcrumb-shell {
    width: 100%;
    background-image: url(/img/breadcrumb.jpg);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(17,24,39,.04);
    min-height: 72px; /* taller breadcrumb bar */
    box-sizing: border-box;
    display: flex;
    align-items: flex-end; /* ensure content naturally sits at bottom */
}

    .breadcrumb-shell .container {
        /* keep same vertical spacing as previous layout but align to bottom */
        padding-top: 1rem;
        padding-bottom: 1rem;
        display: flex;
        align-items: flex-end; /* align inner content to bottom of the bar */
    }

/* Responsiveness: reduce height on small screens */
@media (max-width: 576px) {
    .breadcrumb-shell {
        min-height: 72px;
    }

        .breadcrumb-shell .container {
            padding-top: 0.6rem;
            padding-bottom: 0.6rem;
        }
}

/* Timeslot modal styles */
.timeslot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: .5rem;
}

.timeslot-btn {
    white-space: nowrap;
}

/* Badge showing number of available slots on a day button */
.slot-badge {
    position: absolute;
    top: .4rem;
    right: .45rem;
    background: rgba(111,66,193,.12);
    color: #6f42c1;
    border: 1px solid rgba(111,66,193,.18);
    padding: .12rem .45rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
}

/* smaller count for constrained squares */
.day-btn .day-number {
    font-size: 1rem;
    line-height: 1;
}

.day-btn .day-meta {
    font-size: .75rem;
    color: rgba(17,24,39,.6);
    margin-top: .15rem;
    font-weight: 600;
}

/* Loading spinner on day while slot count is fetched */
.day-btn.is-loading {
    cursor: wait;
    opacity: 0.95;
}

.day-btn .loading-spinner {
    position: absolute;
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(17,24,39,.12);
    border-top-color: #6f42c1;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 0.9s linear infinite;
    z-index: 5;
    pointer-events: none;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

#about .row {
	background-image: url(/img/img5.png);
	background-size: cover;
}

#appointment .row {
	background-image: url(/img/img6.png);
	background-size: cover;
}


#about .img-fluid {
	margin-top: 30px;
}

.section-header, .section-header2 {
	font-family: times, sans-serif;
	font-size: 46pt;
}

.section-header::before {
	content: ' ';
	display: block;
	width: 120px;
	height: 20px;
	border-top: 2px solid #831a79;
}

.section-header2-line {	
	width: 120px;
	height: 20px;
	border-top: 2px solid #831a79;
	margin: 0 auto;
}


.section-title {
	font-weight: 400;
	letter-spacing: -0.02em;
	font-size: 16pt;
	color: #831a79;
}

.services_block {
	height: 150px;
}

.services_block .soft-card {
	background-size: cover;
	background-position: center;
}

.services_block .soft-card h5 {
	color: white;
	font-size: 24pt;
}

.theme_bg {
	background-color: #6F42C1;
	color: white;
}

.theme_bg .text-muted {
	color: #ddd !important;
}

#news {
	/* background-image: url(/img/img7.jpg);
	*/
	background-color: #6F42C1;
	background-size: cover;
	color: white;
}

#news h5 {
	font-size: 14pt;
	font-weight: normal;
	text-align: center;
	line-height: 1.3em;
}

.logo {
    max-height: 75px;
}

@media (max-width: 768px) {
    .logo {
        max-width: 50vw;
    }
}
