@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.duru-service-cards-container {
    width: 100%;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

.dhk-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .dhk-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dhk-card-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.dhk-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #f1f3f5;
    max-width: 100%;
    /* Keep responsive */
    margin: 0 auto;
}

.dhk-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.dhk-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 53, 67, 0.90);
    /* Dark greyish-blue overlay */
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 65px 24px 24px 24px;
    box-sizing: border-box;
    border-radius: 12px 12px 0 0;
    z-index: 5;
}

.dhk-card:hover .dhk-image-overlay {
    opacity: 1;
}

.dhk-overlay-text {
    color: #ffffff;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 10;
    line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
}

.dhk-overlay-text::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.dhk-card-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* Aspect ratio increased for taller cards (1:1 square) */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px 12px 0 0;
}

.dhk-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

.dhk-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #031b4e;
    /* Darker blue badge like the image */
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dhk-card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dhk-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    flex-grow: 1;
}

.dhk-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #f1f3f6;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.dhk-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.dhk-title-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dhk-title {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    line-height: 1.3;
}

.dhk-detail-link {
    font-size: 13px;
    color: #5d6776;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    display: inline-block;
}

.dhk-detail-link:hover {
    color: #0d2149;
    text-decoration: underline;
}

.dhk-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f0f2f5;
}

.dhk-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
    line-height: 1;
    white-space: nowrap;
}

.dhk-btn-icon {
    margin-right: 8px;
}

.dhk-btn-primary {
    background-color: #0d2149;
    color: #ffffff;
    border: 1px solid #0d2149;
}

.dhk-btn-primary:focus,
.dhk-btn-primary:active,
.dhk-btn-primary:visited,
.dhk-btn-primary {
    color: #ffffff;
    text-decoration: none;
}

.dhk-btn-primary:hover {
    background-color: #122f67;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(13, 33, 73, 0.25);
    text-decoration: none;
}

.dhk-btn-secondary {
    background-color: #f4f6f9;
    color: #4b5563;
    border: 1px solid #f4f6f9;
}

.dhk-btn-secondary:focus,
.dhk-btn-secondary:active,
.dhk-btn-secondary:visited,
.dhk-btn-secondary {
    color: #4b5563;
    text-decoration: none;
}

.dhk-btn-secondary:hover {
    background-color: #e5e7eb;
    color: #1f2937;
    border-color: #e5e7eb;
    text-decoration: none;
}

/* Fix Elementor CSS Collisions */
.dhk-elementor-compatible a {
    box-shadow: none !important;
}

.dhk-elementor-compatible h3 {
    padding: 0;
}

/* ========================================= */
/* STYLE VARIATIONS */
/* ========================================= */

/* STYLE 2: Dark Mode */
.dhk-style-2 .dhk-card {
    background: #1a1e23;
    border-color: #2b333e;
}

.dhk-style-2 .dhk-title {
    color: #ffffff;
}

.dhk-style-2 .dhk-btn-secondary {
    background-color: #2b333e;
    color: #e5e7eb;
    border-color: #2b333e;
}

.dhk-style-2 .dhk-btn-secondary:hover {
    background-color: #3f4a5a;
    color: #ffffff;
}

.dhk-style-2 .dhk-card-actions {
    border-top-color: #2b333e;
}

.dhk-style-2 .dhk-icon-wrapper {
    background-color: #2b333e;
}

.dhk-style-2 .dhk-detail-link {
    color: #9ca3af;
}

/* STYLE 3: Horizontal Layout */
@media (min-width: 768px) {
    .dhk-style-3 .dhk-card {
        flex-direction: row;
        max-width: 100%;
        height: auto;
    }

    .dhk-style-3 .dhk-card-image {
        width: 40%;
        padding-top: 0;
        border-radius: 12px 0 0 12px;
        min-height: 250px;
    }

    .dhk-style-3 .dhk-image-overlay {
        border-radius: 12px 0 0 12px;
    }

    .dhk-style-3 .dhk-card-content {
        width: 60%;
        padding: 30px;
    }

    .dhk-style-3 .dhk-card-grid {
        grid-template-columns: 1fr;
        /* Force 1 column on tablet/PC */
    }

    .dhk-style-3 .dhk-badge {
        left: 16px;
        right: auto;
    }
}

/* STYLE 4: Minimalist No Border */
.dhk-style-4 .dhk-card {
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.dhk-style-4 .dhk-card-image {
    border-radius: 0;
}

.dhk-style-4 .dhk-image-overlay {
    border-radius: 0;
}

.dhk-style-4 .dhk-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.dhk-style-4 .dhk-title-wrapper {
    align-items: center;
    width: 100%;
}

.dhk-style-4 .dhk-card-header {
    flex-direction: column;
    text-align: center;
}

.dhk-style-4 .dhk-icon-wrapper {
    margin-right: 0;
    margin-bottom: 15px;
    width: 64px;
    height: 64px;
}

.dhk-style-4 .dhk-card-actions {
    border-top: none;
    padding-top: 0;
}

/* STYLE 5: Gradient Buttons */
.dhk-style-5 .dhk-card-actions {
    flex-direction: column;
}

.dhk-style-5 .dhk-btn-primary {
    background: linear-gradient(135deg, #0d2149 0%, #2b55b3 100%);
    border: none;
}

.dhk-style-5 .dhk-btn-primary:hover {
    background: linear-gradient(135deg, #122f67 0%, #3665c9 100%);
    transform: scale(1.02);
}

/* STYLE 6: Floating Radius */
.dhk-style-6 .dhk-card {
    border-radius: 24px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.dhk-style-6 .dhk-card-image {
    border-radius: 20px 20px 0 0;
    margin: 8px 8px 0 8px;
    width: calc(100% - 16px);
}

.dhk-style-6 .dhk-image-overlay {
    border-radius: 20px 20px 0 0;
}

.dhk-style-6 .dhk-btn {
    border-radius: 20px;
}

.dhk-style-6 .dhk-badge {
    border-radius: 8px;
    top: 24px;
    right: 24px;
}