/* Service Pages Styling */

.category-hero {
    background: linear-gradient(135deg, #1a3d6a 0%, #2c5aa0 50%, #51854c 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(81, 133, 76, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.category-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
}

.category-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.8;
    opacity: 0.95;
}

/* Category Details Section */
.category-details-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #faf9f6 0%, #ffffff 50%, #f8f7f4 100%);
    position: relative;
}

.category-details-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(81, 133, 76, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(26, 61, 106, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.details-content {
    position: relative;
    z-index: 1;
}

.details-content > h2 {
    font-size: 2.5rem;
    color: #1a3d6a;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
}

.mission-statement {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    border-left: 6px solid #51854c;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.mission-statement h3 {
    color: #1a3d6a;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.mission-statement p {
    color: #555;
    line-height: 1.9;
    font-size: 1.05rem;
}

.services-list {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.services-list h3 {
    color: #1a3d6a;
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
    text-align: center;
}

.services-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.services-list li {
    padding: 2rem;
    background: linear-gradient(135deg, #f8f7f4 0%, #faf9f6 100%);
    border-radius: 12px;
    border: 1px solid rgba(81, 133, 76, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.services-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #51854c 0%, #6ba065 100%);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-list li:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(81, 133, 76, 0.15);
    border-color: rgba(81, 133, 76, 0.3);
    background: white;
}

.services-list li:hover::before {
    transform: scaleY(1);
}

.services-list li strong {
    display: block;
    color: #1a3d6a;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.services-list li p {
    color: #666;
    margin: 0;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Projects Section */
.projects-section {
    padding: 5rem 0;
    background: white;
}

.projects-section h2 {
    font-size: 2.5rem;
    color: #1a3d6a;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(81, 133, 76, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(81, 133, 76, 0.3);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f7f4 0%, #f0ede8 100%);
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-content h3 {
    color: #1a3d6a;
    font-size: 1.4rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.4;
}

.project-content p {
    color: #666;
    margin: 0;
    line-height: 1.7;
    flex: 1;
    font-size: 0.95rem;
}

.project-content .btn-link {
    margin-top: auto;
    color: #51854c;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    width: fit-content;
}

.project-content .btn-link:hover {
    color: #6ba065;
    gap: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .category-hero h1 {
        font-size: 2.5rem;
    }

    .category-hero p {
        font-size: 1rem;
    }

    .details-content > h2,
    .projects-section h2 {
        font-size: 2rem;
    }

    .mission-statement,
    .services-list {
        padding: 2rem;
    }

    .services-list ul {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .category-hero {
        padding: 3rem 0;
    }

    .category-hero h1 {
        font-size: 2rem;
    }

    .category-details-section,
    .projects-section {
        padding: 3rem 0;
    }

    .details-content > h2,
    .projects-section h2 {
        font-size: 1.5rem;
    }

    .mission-statement,
    .services-list {
        padding: 1.5rem;
    }

    .services-list li {
        padding: 1.5rem;
    }

    .project-image {
        height: 200px;
    }

    .project-content {
        padding: 1.5rem;
    }
}
