body {
    font-family: 'Mulish', sans-serif;
    --mjb-green: #88B04B;
    --mjb-yellow: #F9C74F;
    --mjb-blue: #4A90E2;
}

h1, h2, h3, h4, h5, h6, .font-poppins {
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.bg-mjb-green { background-color: var(--mjb-green); }
.bg-mjb-yellow { background-color: var(--mjb-yellow); }
.bg-mjb-blue { background-color: var(--mjb-blue); }

.text-mjb-green { color: var(--mjb-green); }
.text-mjb-yellow { color: var(--mjb-yellow); }
.text-mjb-blue { color: var(--mjb-blue); }

.border-mjb-green { border-color: var(--mjb-green); }

.progress-bar-fill {
    transition: width 0.5s ease-in-out;
}

.success-animation {
    animation: fadeIn 0.5s, scaleUp 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
    from { transform: scale(0.95); }
    to { transform: scale(1); }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* For the testimonial slider */
.testimonial-slider {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* for smooth scrolling on iOS */
}
.testimonial-slider::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}
.testimonial-slider {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.testimonial-card {
    scroll-snap-align: center;
}

/* Blog-specific styles */
.blog-post {
    max-width: 65ch;
    margin: 0 auto;
}

.blog-post img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.blog-post h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-post p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.blog-post ul, .blog-post ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.blog-post li {
    margin-bottom: 0.5rem;
}

.blog-post blockquote {
    border-left: 4px solid var(--mjb-green);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

.blog-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.blog-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.blog-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-card .meta {
    font-size: 0.875rem;
    color: #888;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--mjb-blue);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.read-more:hover {
    color: var(--mjb-green);
}