/* Services Page Styles */
.nk-section {
    padding: 5rem 0;
    position: relative;
    background-color: #ffffff;
    width: 100%;
}

.nk-feature-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

/* Section Headings */
.nk-section-head {
    margin-bottom: 3rem;
    text-align: center;
}

.nk-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e1a47;
    line-height: 1.2;
}

.nk-section-text {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    text-align: center;
    display: block;
    padding: 0 1rem;
}

/* Features Grid Layout */
.feature-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(84, 164, 9, 0.1);
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: rgb(2, 2, 2);
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon img {
    width: 45%;
    height: auto;
    filter: brightness(0) invert(1);
}

.feature-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #1e1a47;
    font-weight: 600;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
    flex-grow: 1;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .feature-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .feature-item h3 {
        font-size: 1.3rem;
    }
    
    .feature-item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .nk-section {
        padding: 3.5rem 0;
    }
    
    .nk-section-title {
        font-size: 2rem;
    }
    
    .nk-section-text {
        font-size: 1rem;
    }
}

/* Icon Background Colors */
.bg-blue {
    background-color: #4a90e2;
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.3);
}

.bg-yellow {
    background-color: #ffc107;
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.3);
}

.bg-pink {
    background-color: #e83e8c;
    box-shadow: 0 6px 15px rgba(232, 62, 140, 0.3);
}

.bg-gray {
    background-color: #6c757d;
    box-shadow: 0 6px 15px rgba(108, 117, 125, 0.3);
}

/* Text Colors */
.text-primary {
    color: #54A409 !important;
}

/* Responsive Adjustments */
@media (max-width: 1199px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .nk-section-title {
        font-size: 2rem;
    }
    
    .nk-section-text {
        font-size: 1rem;
    }
}

/* Two-Column Layout Adjustments */
.nk-feature-section .row > .col-md-6 {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.nk-feature-section .media {
    margin-right: 1.5rem;
}

.nk-feature-section h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e1a47;
}

.nk-feature-section .nk-section-text {
    margin: 0;
    font-size: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .nk-section {
        padding: 3rem 0;
    }
    
    .nk-section-title {
        font-size: 2rem;
    }
    
    .media {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }
    
    .nk-feature-section .row > .col-md-6 {
        flex-direction: column;
        text-align: center;
    }
    
    .nk-feature-section .media {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    .nk-section-title {
        font-size: 1.75rem;
    }
    
    .nk-section-text {
        font-size: 1rem;
    }
    
    .media {
        width: 70px;
        height: 70px;
        font-size: 1.3rem;
    }
}

/* Animation for feature items */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos][data-aos="fade-up"] {
    transform: translateY(20px);
}

[data-aos][data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    transition-duration: 0.6s;
}