body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}
.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.card-shadow:hover {
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.1);
    transform: translateY(-8px);
}
.transition-all-custom {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.bg-pattern {
    background-color: #f8fafc;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Testimonial slide animations */
.testimonial-slide {
    transition: transform 0.6s ease, opacity 0.6s ease;
    will-change: transform, opacity;
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    display: block;
}

/* Ensure carousel container defines the stacking context and height */
/* fixed height keeps carousel from collapsing when slides differ in height */
#testimonials-carousel {
    position: relative;
    height: 420px;
}

.testimonial-content {
    display: block;
    width: calc(100% - 32px);
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
    color: #0f172a;
}
/* Use a slide-specific hidden class (don't override global .hidden) */
.slide-hidden {
    opacity: 0;
    pointer-events: none;
}
.slide-in-right {
    transform: translateX(100%) translateY(-50%);
    opacity: 0;
}
.slide-in-left {
    transform: translateX(-100%) translateY(-50%);
    opacity: 0;
}
.slide-active {
    transform: translateX(0) translateY(-50%);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.slide-out-left {
    transform: translateX(-100%) translateY(-50%);
    opacity: 0;
}
.slide-out-right {
    transform: translateX(100%) translateY(-50%);
    opacity: 0;
}

/* Controls */
.carousel-controls { display:flex; gap:12px; justify-content:center; margin-top:16px }
.carousel-indicators { display:flex; gap:8px; justify-content:center; margin-top:12px }
.carousel-indicators button { width:10px; height:10px; border-radius:9999px; background:#cbd5e1; border:none }
.carousel-indicators button.active { background:#2563eb }
.carousel-btn { background: rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.08); color:inherit; padding:8px 12px; border-radius:9999px }

/* Typography for post content (article.prose / .prose) */
article.prose, .prose {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #0f172a;
}
.prose p {
    margin: 0 0 1.25rem;
}
.prose p:first-child {
    margin-top: 0;
}
.prose h1, .prose h2, .prose h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.5rem; }
.prose img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 0.5rem;
}
.prose blockquote {
    border-left: 4px solid #e6eefc;
    background: #fbfdff;
    padding: 1rem;
    color: #334155;
    margin: 1rem 0;
    border-radius: 0.5rem;
}
.prose ul, .prose ol {
    margin: 0 0 1rem 1.25rem;
}
.prose ul {
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 1.25rem;
}
.prose ol {
    list-style-type: decimal;
    list-style-position: outside;
    padding-left: 1.5rem;
}
.prose li {
    margin: 0.35rem 0;
}
/* Ensure marker color is visible (for browsers supporting ::marker) */
.prose li::marker {
    color: #0f172a;
}

/* Make service cards equal height by using flex column layout
   and letting the description paragraph expand to fill space. */
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.service-card > p {
    flex: 1 1 auto;
}
.service-card .text-{{ service.color }}-600 {
    /* ensure price stays visible at bottom */
    flex-shrink: 0;
}
.prose a:not(.text-white) {
    color: #2563eb;
    text-decoration: underline;
}

/* Justify post paragraphs and list items for a neat block look */
.prose p, .prose li {
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

