/* KNR Computers & Services - Main Styles */

:root {
    --primary: #0d6efd;
    --primary-dark: #084298;
    --dark: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --light: #f5f8fc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.7;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: .3s ease;
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 700;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.section-padding {
    padding: 90px 0;
}

.section-bg {
    background: var(--light);
}

/* Hero */
.hero-section {
    position: relative;
    overflow: hidden;
 
}

.carousel-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.carousel-item {
    position: relative;
}

.carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.05), rgba(0,0,0,.65));
    pointer-events: none;
}

.carousel-caption {
    z-index: 2;
    bottom: 50px;
    left: 8%;
    right: 8%;
    text-align: left;
}

.carousel-caption h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 0 3px 10px rgba(0,0,0,.4);
}

/* Featured blocks */
.featured-block {
    min-height: 220px;
    padding: 30px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: .3s ease;
}

.featured-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(15,23,42,.14);
}

.featured-block a {
    text-align: center;
    color: var(--dark);
}

.featured-block-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.featured-block-text {
    font-size: 16px;
    margin: 0;
}

/* Story / About */
.custom-text-box {
    background: #fff;
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.custom-text-box-image {
    width: 100%;
    min-height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
}

.about-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
}

.custom-text-block {
    padding: 30px;
}

/* Counters */
.counter-thumb {
    padding: 15px 0;
}

.counter-number {
    color: var(--primary);
    font-size: 42px;
    font-weight: 800;
}

.counter-number-text {
    color: var(--primary);
    font-size: 32px;
    font-weight: 700;
}

.counter-text {
    color: var(--muted);
    font-weight: 600;
}

/* Managed IT Services */
.cta-section {
    background: var(--light);
}

.cta-section img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin-top: 20px;
    transition: .3s ease;
}

.cta-section img:hover {
    transform: scale(1.08);
}

.cta-section h6 {
    margin-top: 15px;
    font-size: 16px;
}

/* Service cards */
.custom-block-wrap {
    height: 100%;
    overflow: hidden;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: .3s ease;
}

.custom-block-wrap:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(15,23,42,.14);
}

.custom-block-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.custom-block {
    padding: 25px;
}

.custom-block-body {
    min-height: 150px;
}

.custom-btn {
    display: inline-block;
    padding: 11px 25px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff !important;
    font-weight: 600;
    border: none;
}

.custom-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Forms */
.volunteer-section {
    padding: 90px 0;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.custom-form {
    background: #fff;
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: 0 15px 45px rgba(0,0,0,.2);
}

.form-control {
    width: 100%;
    min-height: 50px;
    margin-bottom: 15px;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13,110,253,.12);
}

textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

button.form-control {
    background: var(--primary);
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

button.form-control:hover {
    background: var(--primary-dark);
}

.volunteer-image {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 25px;
}

/* Why choose us */
.news-block {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.news-block-top img,
.news-image {
    width: 100%;
    object-fit: cover;
}

.news-block-top .news-image {
    height: 300px;
}

.news-block-info,
.news-block-title,
.news-block-body {
    padding-left: 25px;
    padding-right: 25px;
}

.news-block-info {
    padding-top: 20px;
    padding-bottom: 20px;
}

.news-block-title {
    padding-top: 15px;
}

.news-block-body {
    padding-bottom: 20px;
}

/* Categories */
.category-block {
    margin-top: 35px;
    padding: 25px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.category-block-link {
    padding: 12px 0;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.category-block-link:last-child {
    border-bottom: none;
}

.category-block-link:hover {
    color: var(--primary);
    padding-left: 8px;
}

/* Customers */
.testimonial-section {
    padding: 70px 0;
    background: var(--light);
}

.testimonial-section h2 {
    text-align: center;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.marquee-container img {
    width: 150px;
    height: 90px;
    margin: 0 10px;
    padding: 8px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* Contact */
.contact-info-wrap {
    padding: 30px;
}

.contact-image-wrap {
    margin: 25px 0;
    align-items: center;
}

.avatar-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #e5e7eb;
}

.contact-info {
    margin-top: 25px;
}

.contact-info i {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 991px) {
    .section-padding {
        padding: 65px 0;
    }

    .carousel-image {
        height: 500px;
    }

    .carousel-caption h1 {
        font-size: 2.3rem;
    }

    .custom-text-box {
        padding: 25px;
    }

    .about-image {
        margin-bottom: 30px;
    }

    .ps-5 {
        padding-left: 12px !important;
    }
}

@media (max-width: 767px) {
    h2 {
        font-size: 1.8rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .carousel-image {
        height: 350px;
    }

    .carousel-caption {
        bottom: 25px;
        left: 7%;
        right: 7%;
    }

    .carousel-caption h1 {
        font-size: 1.8rem;
    }

    .featured-block {
        margin-bottom: 20px;
    }

    .custom-block-image {
        height: 210px;
    }

    .custom-form {
        padding: 25px 20px;
    }

    .news-block-top .news-image {
        height: 220px;
    }

    .marquee-container img {
        width: 120px;
        height: 75px;
    }
}

@media (max-width: 480px) {
    .carousel-image {
        height: 280px;
    }

    .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .featured-block {
        min-height: 190px;
    }

    .custom-text-box {
        padding: 20px;
    }

    .counter-number {
        font-size: 34px;
    }

    .custom-form {
        padding: 20px 15px;
    }
}
