/* ==========================================================================
   Kutech Design System
   Brand colours, typography, spacing, and global styles
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
    /* Brand */
    --kutech-blue: #176493;
    --kutech-blue-light: #3680b3;
    --kutech-blue-content: #3387b3;
    --kutech-gold: #FDD428;
    --kutech-gold-dark: #e9be00;

    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-dark: #1f1f1f;

    /* Text */
    --text-primary: #1f1f1f;
    --text-secondary: #6a6a6a;
    --text-blog: #484852;
    --text-light: #ffffff;

    /* Supporting */
    --success: #36b36a;
    --alert: #fe4c50;
    --border: #e1e1e1;

    /* Spacing */
    --section-padding: 5rem 0;
    --section-padding-sm: 3rem 0;
}

/* --- Base Typography --- */
html, body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
    line-height: 1.8;
}

h1:focus { outline: none; }

/* --- Links --- */
a {
    color: var(--kutech-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--kutech-blue-light);
}

/* --- Buttons --- */
.btn-kutech {
    background-color: var(--kutech-blue);
    border-color: var(--kutech-blue);
    color: var(--text-light);
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-kutech:hover {
    background-color: var(--kutech-blue-light);
    border-color: var(--kutech-blue-light);
    color: var(--text-light);
}

.btn-kutech-gold {
    background-color: var(--kutech-gold);
    border-color: var(--kutech-gold);
    color: var(--text-primary);
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-kutech-gold:hover {
    background-color: var(--kutech-gold-dark);
    border-color: var(--kutech-gold-dark);
    color: var(--text-primary);
}

.btn-kutech-outline {
    background-color: transparent;
    border: 2px solid var(--kutech-blue);
    color: var(--kutech-blue);
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-kutech-outline:hover {
    background-color: var(--kutech-blue);
    color: var(--text-light);
}

/* --- Sections --- */
.section {
    padding: var(--section-padding);
}

.section-sm {
    padding: var(--section-padding-sm);
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--text-light);
}

.section-dark p {
    color: rgba(255, 255, 255, 0.8);
}

.section-alt {
    background-color: var(--bg-secondary);
}

.section-blue {
    background-color: var(--kutech-blue);
    color: var(--text-light);
}

.section-blue h2,
.section-blue h3,
.section-blue h4 {
    color: var(--text-light);
}

.section-blue p {
    color: rgba(255, 255, 255, 0.85);
}

/* --- Gold Accent Underline for Headings --- */
.heading-accent {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.heading-accent::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--kutech-gold);
}

.heading-accent-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* --- Cards --- */
.card-kutech {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 2rem;
    background: var(--bg-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.card-kutech:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-kutech h3 {
    color: var(--kutech-blue);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Clickable card variant */
.card-kutech-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.card-kutech-link:hover {
    color: inherit;
    text-decoration: none;
}

.card-kutech-link p {
    color: var(--text-secondary);
}

/* --- Validation & Forms --- */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--success);
}

.invalid {
    outline: 1px solid var(--alert);
}

.validation-message {
    color: var(--alert);
}

/* --- Error Boundary --- */
.blazor-error-boundary {
    background: var(--alert);
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* --- Utility --- */
.text-kutech-blue { color: var(--kutech-blue) !important; }
.text-kutech-gold { color: var(--kutech-gold) !important; }
.bg-kutech-blue { background-color: var(--kutech-blue) !important; }
.bg-kutech-gold { background-color: var(--kutech-gold) !important; }

/* --- Smooth scrolling --- */
html {
    scroll-behavior: smooth;
}

/* Offset in-page anchor targets so they clear the fixed navbar */
[id] {
    scroll-margin-top: 80px;
}

/* --- Selection colour --- */
::selection {
    background-color: var(--kutech-blue);
    color: white;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.bg-kutech-nav {
    background-color: var(--kutech-blue) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.bg-kutech-nav .navbar-brand img {
    transition: opacity 0.2s ease;
}

.bg-kutech-nav .navbar-brand:hover img {
    opacity: 0.9;
}

.bg-kutech-nav .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.bg-kutech-nav .navbar-nav .nav-link:hover,
.bg-kutech-nav .navbar-nav .nav-link:focus {
    color: var(--kutech-gold);
}

.bg-kutech-nav .navbar-nav .nav-link.active {
    color: var(--kutech-gold);
}

.bg-kutech-nav .dropdown-menu {
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

.bg-kutech-nav .dropdown-item {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.bg-kutech-nav .dropdown-item:hover {
    background-color: var(--kutech-blue);
    color: white;
}

.nav-cta {
    margin-left: 0.5rem;
}

.nav-cta .btn {
    padding: 0.4rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .bg-kutech-nav .navbar-nav {
        padding: 1rem 0;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 0.75rem;
    }

    .nav-cta .btn {
        display: inline-block;
    }

    .bg-kutech-nav .dropdown-menu {
        box-shadow: none;
        border-radius: 0;
        padding-left: 1rem;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    padding: 3.5rem 0 1.5rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: var(--kutech-gold);
}

.footer-heading {
    color: var(--kutech-gold);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--kutech-gold);
    font-size: 1rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: white;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.15);
    margin: 2rem 0 1rem;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.footer-legal-link {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-legal-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    background-color: var(--kutech-blue);
    color: white;
    padding: 8rem 0 5rem; /* extra top padding for fixed navbar */
    position: relative;
    /* Subtle depth: soft lighting plus a faint data-grid texture */
    background-image:
        radial-gradient(ellipse at 15% 25%, rgba(255, 255, 255, 0.07), transparent 55%),
        radial-gradient(ellipse at 85% 75%, rgba(0, 0, 0, 0.18), transparent 55%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: auto, auto, 48px 48px, 48px 48px;
}

/* Homepage hero: splash image behind a dark-blue overlay for warmth.
   Raise/lower the overlay alpha to taste (lower = more image shows through). */
.hero-home {
    background-image: linear-gradient(rgba(18, 52, 77, 0.80), rgba(18, 52, 77, 0.86)), url('images/splash.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-title {
    color: white;
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-credentials {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    max-width: 600px;
    margin: -1rem auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-hero-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* ==========================================================================
   Service Cards
   ========================================================================== */

.service-icon {
    margin-bottom: 1.25rem;
}

.service-icon i {
    font-size: 2.25rem;
    color: var(--kutech-blue);
}

.service-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--kutech-blue);
    transition: color 0.2s ease;
}

.service-link:hover {
    color: var(--kutech-blue-light);
}

.service-link i {
    transition: transform 0.2s ease;
}

.service-link:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   Expertise / Why Us
   ========================================================================== */

.lead-text {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.expertise-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.expertise-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.expertise-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--kutech-blue);
    border-radius: 0.5rem;
    color: white;
    font-size: 1.25rem;
}

.expertise-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.expertise-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Technology Badges
   ========================================================================== */

.section-intro {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.tech-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1rem;
}

.tech-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
    min-width: 100px;
    text-decoration: none;
}

.tech-badge i {
    font-size: 1.5rem;
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

.tech-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid var(--kutech-gold);
    color: white;
}

.tech-primary i {
    color: var(--kutech-gold);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-card {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-quote i {
    font-size: 2rem;
    color: var(--kutech-gold);
    display: block;
    margin-bottom: 0.75rem;
}

.testimonial-quote p {
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-secondary);
}

.testimonial-author {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Contact CTA
   ========================================================================== */

.cta-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 540px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* ==========================================================================
   Hero Variants
   ========================================================================== */

.hero-short {
    padding: 7rem 0 3.5rem;
}

/* ==========================================================================
   Section Subtitles
   ========================================================================== */

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================================================
   Technologies Page
   ========================================================================== */

/* Featured technology badge */
.tech-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--kutech-gold);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.85rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
}

.tech-featured-badge i {
    font-size: 0.85rem;
}

/* SQL Server capabilities list */
.sql-capabilities {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.capability-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.capability-item > i {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--kutech-blue);
    border-radius: 0.5rem;
    color: white;
    font-size: 1.15rem;
    line-height: 44px;
    text-align: center;
}

.capability-item h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.capability-item p {
    font-size: 0.88rem;
    margin-bottom: 0;
    line-height: 1.55;
}

/* Technology cards */
.tech-card {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 2rem;
    background: var(--bg-primary);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.tech-card-icon {
    margin-bottom: 1.25rem;
}

.tech-card-icon i {
    font-size: 2rem;
    color: var(--kutech-blue);
}

.tech-card h3 {
    color: var(--kutech-blue);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.tech-card p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.tech-card-tags {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-card-tags li {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
}

/* Also experienced with — passing mention */
.also-experienced {
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-primary);
    border: 1px dashed var(--border);
    border-radius: 0.5rem;
}

.also-experienced p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.also-experienced i {
    color: var(--kutech-blue);
    margin-right: 0.5rem;
}

/* SQL Server full coverage tags */
.sql-coverage {
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 1.75rem 2rem;
    text-align: center;
}

.sql-coverage-heading {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.sql-coverage-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.sql-coverage-tags span {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.35rem 0.9rem;
    border-radius: 2rem;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sql-coverage-tags span:hover {
    background-color: var(--kutech-blue);
    border-color: var(--kutech-blue);
    color: white;
}

/* ==========================================================================
   Services Pages
   ========================================================================== */

/* Service overview cards */
.service-overview-card {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 2rem;
    background: var(--bg-primary);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.service-overview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.service-card-featured {
    border-color: var(--kutech-blue);
    border-width: 2px;
}

.service-card-label {
    display: inline-block;
    background: var(--kutech-blue);
    color: white;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.65rem;
    border-radius: 2rem;
    margin-bottom: 0.75rem;
}

.service-overview-icon {
    margin-bottom: 1.25rem;
}

.service-overview-icon i {
    font-size: 2rem;
    color: var(--kutech-blue);
}

.service-overview-card h3 {
    color: var(--kutech-blue);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

/* Approach steps (numbered) */
.approach-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.approach-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--kutech-blue);
    border-radius: 50%;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.approach-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.approach-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Coverage grid (checkmark list) */
.coverage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.coverage-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.coverage-item i {
    color: var(--kutech-blue);
    font-size: 1rem;
}

/* Audience list */
.audience-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.audience-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.audience-item > i {
    flex-shrink: 0;
    font-size: 1.5rem;
    color: var(--kutech-blue);
    margin-top: 0.15rem;
}

.audience-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.audience-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Report features */
.report-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.report-feature {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.report-feature > i {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--kutech-blue);
    margin-top: 0.15rem;
}

.report-feature h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.report-feature p {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Starting points / fit indicators */
.starting-points {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
    max-width: 560px;
    margin: 0 auto;
}

.starting-point {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.starting-point i {
    flex-shrink: 0;
    color: var(--kutech-blue);
    font-size: 1.1rem;
}

/* Engagement options */
.engagement-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.engagement-option i {
    color: var(--kutech-blue);
    font-size: 1.15rem;
}

/* Course cards */
.course-card {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.75rem;
    background: var(--bg-primary);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.course-card p {
    font-size: 0.88rem;
    line-height: 1.6;
    flex-grow: 1;
}

.course-level {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.65rem;
    border-radius: 2rem;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.course-level-beginner {
    background: #e8f5e9;
    color: #2e7d32;
}

.course-level-intermediate {
    background: #fff3e0;
    color: #e65100;
}

.course-level-advanced {
    background: #e3f2fd;
    color: #1565c0;
}

.course-duration {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* ==========================================================================
   About Page
   ========================================================================== */

/* Credentials badge grid */
.credentials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.credential-badge {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 0.375rem;
    transition: transform 0.2s ease;
}

.credential-badge:hover {
    transform: scale(1.1);
}

.credential-featured {
    width: 110px;
    height: 110px;
    border: 2px solid var(--kutech-gold);
    border-radius: 0.5rem;
    padding: 4px;
}

/* Team cards */
.team-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
}

.team-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.25rem;
    border: 3px solid var(--kutech-blue);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.team-role {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--kutech-blue);
    margin-bottom: 1rem;
}

.team-card p {
    font-size: 0.9rem;
    line-height: 1.65;
}

/* Client logo grid */
.client-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.client-logo {
    flex: 0 0 auto;
}

.client-logo img {
    max-height: 50px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.client-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.contact-form .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--kutech-blue);
    box-shadow: 0 0 0 0.2rem rgba(23, 100, 147, 0.15);
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-block {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 1px solid var(--border);
}

.contact-info-block h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info-block h3 i {
    color: var(--kutech-blue);
    font-size: 1.15rem;
}

.contact-info-block p {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.contact-email-link {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--kutech-blue);
    text-decoration: none;
}

.contact-email-link:hover {
    text-decoration: underline;
    color: var(--kutech-blue-light);
}

.next-steps {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.next-steps li {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

.next-steps li::marker {
    color: var(--kutech-blue);
    font-weight: 700;
}

/* ==========================================================================
   Legal / Privacy Page
   ========================================================================== */

.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--kutech-gold);
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.legal-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.legal-content ul li {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.legal-content a {
    color: var(--kutech-blue);
}

.legal-content a:hover {
    color: var(--kutech-blue-light);
}

/* ==========================================================================
   Blog
   ========================================================================== */

/* Eyebrow label above hero title on category pages */
.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--kutech-gold);
    margin-bottom: 0.5rem;
}

/* Blog post card on listing / category / search pages */
.blog-card {
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.blog-card:last-of-type {
    border-bottom: none;
}

.blog-card-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.blog-card-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--kutech-blue);
}

/* Excerpt: constrain and reset any inline styles from stored HTML */
.blog-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.blog-card-excerpt * {
    font-size: inherit !important;
    color: inherit !important;
    background: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.blog-read-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--kutech-blue);
    text-decoration: none;
}

.blog-read-more:hover {
    color: var(--kutech-blue-light);
}

/* Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.blog-pagination-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Breadcrumb on article pages */
.breadcrumb-blog {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-blog .breadcrumb-item,
.breadcrumb-blog .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
}

.breadcrumb-blog .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.55);
}

.breadcrumb-blog .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Article body: scope all content styles so they don't bleed into the layout */
.blog-article-content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.blog-article-content h1,
.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4,
.blog-article-content h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-article-content h2 {
    font-size: 1.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--kutech-gold);
}

.blog-article-content h3 { font-size: 1.2rem; }
.blog-article-content h4 { font-size: 1rem; }

.blog-article-content p {
    margin-bottom: 1.25rem;
    color: var(--text-blog);
}

.blog-article-content a {
    color: var(--kutech-blue);
}

.blog-article-content a:hover {
    color: var(--kutech-blue-light);
}

.blog-article-content ul,
.blog-article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.blog-article-content li {
    margin-bottom: 0.4rem;
    color: var(--text-blog);
}

.blog-article-content blockquote {
    border-left: 4px solid var(--kutech-gold);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--bg-secondary);
    border-radius: 0 4px 4px 0;
}

.blog-article-content blockquote p {
    margin: 0;
    font-style: italic;
    color: var(--text-secondary);
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.blog-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.blog-article-content th,
.blog-article-content td {
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.blog-article-content th {
    background: var(--kutech-blue);
    color: #fff;
    font-weight: 600;
}

.blog-article-content tr:nth-child(even) td {
    background: var(--bg-secondary);
}

/* Inline code */
.blog-article-content code:not([class]) {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.875em;
    background: var(--bg-secondary);
    color: var(--kutech-blue);
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

/* Code blocks — Prism.js handles colouring; we handle layout */
.blog-article-content pre {
    border-radius: 6px;
    margin: 1.5rem 0;
    overflow-x: auto;
    font-size: 0.875rem;
}

.blog-article-content pre code {
    font-size: inherit;
}

/* --- Migrated (legacy) article markup ---
   Older articles are authored with these class names rather than semantic tags. */
.blog-article-content .blogHeader,
.blog-article-content .blogDate {
    display: none; /* title is shown in the page hero; the in-content date is unreliable */
}

.blog-article-content .blogText {
    color: var(--text-blog);
}

.blog-article-content .codeClass {
    background: #f7f9fb;
    border: 1px solid var(--border);
    border-left: 3px solid var(--kutech-blue);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin: 0;
    overflow-x: auto;
}

.blog-article-content .codeClass code {
    display: block;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    background: none;
    color: inherit;
    padding: 0;
}

.blog-article-content .picDiv {
    text-align: center;
    margin: 0;
}

/* The stored HTML already spaces blocks with <br/>, so don't add margins on top. */
.blog-article-content .picDiv img {
    margin: 0;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 5rem;
}

.blog-sidebar-widget {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-sidebar-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--kutech-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--kutech-gold);
}

.blog-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border);
}

.blog-sidebar-list li:last-child {
    border-bottom: none;
}

.blog-sidebar-link {
    font-size: 0.875rem;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.4;
    display: block;
}

.blog-sidebar-link:hover {
    color: var(--kutech-blue);
}

.blog-sidebar-cta {
    background: var(--kutech-blue);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.blog-sidebar-cta p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* Utility button variants used in blog */
.btn-kutech-blue {
    background-color: var(--kutech-blue);
    border-color: var(--kutech-blue);
    color: #fff;
}

.btn-kutech-blue:hover {
    background-color: var(--kutech-blue-light);
    border-color: var(--kutech-blue-light);
    color: #fff;
}

.btn-outline-kutech {
    border: 2px solid var(--kutech-blue);
    color: var(--kutech-blue);
    background: transparent;
}

.btn-outline-kutech:hover {
    background: var(--kutech-blue);
    color: #fff;
}

.text-kutech {
    color: var(--kutech-blue) !important;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 6rem 0 3.5rem;
    }

    .hero-short {
        padding: 6rem 0 2.5rem;
    }

    .tech-badge {
        min-width: 80px;
        padding: 0.75rem 1rem;
    }
}
