/* 
 * Arkdin Custom Services Widget Styles
 */

 .cs_custom_services_wrapper {
    position: relative;
}

/* Card Base */
.cs_service_card {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
    padding: 50px 30px 110px; /* Alttaki icon için boşluk bırakıldı */
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

/* Overlay & Background Image */
.cs_service_card_bg_image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transition: all 0.4s ease;
}

.cs_service_card_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.4s ease;
}

/* Hover Effects */
.cs_service_card:hover .cs_service_card_bg_image {
    transform: scale(1.05);
}

/* Base text styling overrides to ensure visibility over dark background */
.cs_service_card_in {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* İçeriği dikey ortala */
}

.cs_service_card_number {
    font-size: 80px;
    font-weight: 300;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.7);
    color: transparent;
    line-height: 1;
    margin-bottom: 10px;
    transition: all 0.4s ease;
}

.cs_service_card:hover .cs_service_card_number {
    color: #fff;
    -webkit-text-stroke: 1px #fff;
}

.cs_service_card_title {
    color: #fff;
    margin-bottom: 15px;
    font-size: 24px;
}

.cs_service_card_subtitle {
    color: #e0e0e0;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Service Icon */
.cs_service_card_icon {
    position: absolute;
    bottom: -65px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    padding: 15px;
    margin: 0;
    border-radius: 50%; /* Yuvarlak beyaz arka plan */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    flex-shrink: 0;
    z-index: 5;
    box-shadow: 0px 10px 20px rgba(0,0,0,0.1); /* Hafif gölge iyi durabilir */
}
.cs_service_card_icon img {
    max-width: 100%;
    filter: brightness(0); /* Make icon dark */
}


/* =========================
   STYLE 1: The Hexagon / Octagon
   ========================= */
.arkdin_custom_card_style1_v2 {
    width: 100%;
    aspect-ratio: 1 / 1 !important; /* Yükseklik ve genişlik kesinlikle aynı (kare) */
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 80px; /* Dışarı sarkan ikon için alt boşluk eklendi */
    /* Sabit bir görünüm için flex ayarlarını eziyoruz */
    height: auto !important;
}

.arkdin_custom_card_style1_v2 .cs_service_card_bg_image {
    /* Orijinal tasarımdaki alt kanatları (wings) olan karmaşık poligon */
    clip-path: polygon(25% 0%, 75% 0%, 100% 25%, 100% 70%, 88% 82%, 95% 82%, 95% 86%, 75% 100%, 25% 100%, 5% 86%, 5% 82%, 12% 82%, 0% 70%, 0% 25%);
}

.arkdin_custom_card_style1_v2 .cs_service_card_overlay {
    clip-path: polygon(25% 0%, 75% 0%, 100% 25%, 100% 70%, 88% 82%, 95% 82%, 95% 86%, 75% 100%, 25% 100%, 5% 86%, 5% 82%, 12% 82%, 0% 70%, 0% 25%);
}

.arkdin_custom_card_style1_v2:hover .cs_service_card_bg_image {
    transform: scale(1.05);
}


/* =========================
   STYLE 2: Rounded Modern
   ========================= */
.arkdin_custom_card_style2 .cs_service_card_bg_image {
    border-radius: 40px 0 40px 0;
    clip-path: none; /* Reset if clip-path was inherited somehow */
}

.arkdin_custom_card_style2 .cs_service_card_overlay {
    border-radius: 40px 0 40px 0;
}

.arkdin_custom_card_style2:hover .cs_service_card_bg_image {
    border-radius: 0 40px 0 40px;
    transform: scale(1);
}
.arkdin_custom_card_style2:hover .cs_service_card_overlay {
    border-radius: 0 40px 0 40px;
}


/* =========================
   STYLE 3: Strict Square
   ========================= */
.arkdin_custom_card_style3 .cs_service_card_bg_image {
    border-radius: 0;
    clip-path: none;
}
.arkdin_custom_card_style3 .cs_service_card_icon {
    border-radius: 50%; /* Circle icon for square design */
}

/* Hiding default "Read More" button if needed (like the original site CSS did) */
.cs_custom_services_wrapper .cs_text_btn {
    display: none !important;
}
