/* ========== Civil Page Variables ========== */
.civil-page {
    --civil-primary: #f04e30;
    --civil-dark: #2a2a2a;
    --civil-light: #f9f9f9;
}

/* ========== Hero Section ========== */
.civil-hero {
    background: linear-gradient(135deg, 
        rgba(40,40,40,0.9) 0%,
        rgba(30,30,30,0.9) 100%),
        url('images/civil_bg.png') center/cover;
    padding: 8rem 1rem;
    text-align: center;
    position: relative;
}

.civil-hero-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.civil-hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.4rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== Services Grid ========== */
.civil-services {
    padding: 4rem 0;
    background: var(--civil-light);
}

.civil-services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.civil-service-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.civil-service-card:hover {
    transform: translateY(-5px);
}

.service-image-hover {
    position: relative;
    margin-top: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
}

.service-image-hover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.civil-service-card:hover .service-image-hover img {
    transform: scale(1.05);
}

/* Card Elements */
.service-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--civil-primary);
    margin-bottom: 1rem;
}

.service-card-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.service-card-list li {
    padding: 0.8rem 0;
    position: relative;
    padding-left: 1.5rem;
    border-bottom: 1px solid #eee;
}

.service-card-list li:last-child {
    border-bottom: none;
}

.service-card-list li::before {
    content: "▸";
    color: var(--civil-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Certification Banner */
.civil-certification {
    background: black;
    border-top: 3px solid;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .civil-hero-title {
        font-size: 2.5rem;
    }

    .civil-hero-subtitle {
        font-size: 1.2rem;
    }

    .service-image-hover {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .civil-hero-title {
        font-size: 2rem;
    }

    .civil-service-card {
        padding: 1.5rem;
    }
}

