/* Custom styles for klinet.php to match the existing design */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #004d99;
    /* Adjust to match header/footer color */
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card-image-container {
    width: 100%;
    height: 200px;
    /* Fixed height for project images */
    overflow: hidden;
    position: relative;
}

.project-card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-card-content {
    padding: 20px;
}

.project-card-content h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #004d99;
}

.project-card-content p {
    font-size: 0.9em;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    /* Limit to 7 lines */
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-card-button {
    display: inline-block;
    background-color: #004d99;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.project-card-button:hover {
    background-color: #003366;
}


/* Carousel styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 100;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card-image-container {
        height: 250px;
    }

    .project-card-content {
        padding: 15px;
    }

    .project-card-content h3 {
        font-size: 1.3em;
    }

    .project-card-content p {
        font-size: 0.85em;
    }

    .project-card-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.6rem;
    }

    .project-card-image-container {
        height: 200px;
    }
}