﻿ 
/* card */ 
.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 12px rgba(0,0,0,.08);
    position: relative;
    transition: .3s;
    border: 1px solid #ddd;
} 
.card-content {
    padding: 35px 25px 0px;
}


    .card-content h5 {
        font-weight: 600;
    }


    .card-content p {
        color: #777;
        font-size: 14px;
    }


    .card-content a {
        float: right;
        color: #c8a44d;
    }


.card-description {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    height: calc(1.6em * 4); /* กำหนดความสูงตายตัว */
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

 

/*.service-card {
    display: flex;
    flex-direction: column;
    min-height: 580px;*/
  /*  height: 100%;*/
/*}*/

.service-content {
    flex: 1;
}
 

.service-list {
    list-style: none;
    padding: 0;
    margin: 12px 0px 12px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.service-list i {
    color: #0d6efd;
    font-size: 0.9rem;
}

/*ปุ่มบริการอื่นๆ*/
.service-otherbtn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c8a45d; /* สีทอง */
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color .3s ease;
}

    .service-otherbtn .check-icon {
        color: #28a745; /* เขียว */
        font-size: 18px;
        flex-shrink: 0;
    }

    /*.service-otherbtn .text {
        transition: transform .25s ease, color .25s ease;
    }

    .service-otherbtn:hover .text {
        color: #b8860b;*/ /* ทองเข้ม */
        /*transform: translateX(5px);
    }*/

.other-text {
    display: inline-block;
    transition: transform .25s ease, color .25s ease;
}

.service-otherbtn:hover .other-text {
    color: #b8860b;
    transform: translateX(5px);
}

/*******แสดงบริการ 6 หมวด และ Gradient ค่อย ๆ จางลง ************/
.service-preview {
    position: relative;
    max-height: 1840px; /* ปรับตามความสูงจริง */
    overflow: hidden;
}

 

.service-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 320px;
    background: linear-gradient( to bottom, rgba(var(--section-bg),0), rgba(var(--section-bg),0.75) 45%, rgba(var(--section-bg),1) 100% );
}

/*.service-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 380px;
    background: linear-gradient( to bottom, rgba(255,255,255,0), rgba(255,255,255,.75) 45%, rgba(255,255,255,1) 100%);
}*/
.service-wrapper .btn {
    border-radius: 50px;
    padding: 14px 42px;
    font-weight: 600;
}
/*******************/





.card-arrow {
    margin-top: auto;
    align-self: flex-end;
    font-size: 0.85rem;
    color: #c69a39;
    text-decoration: none;
    padding-top: 10px;
}

/*
.card:hover {
    transform: translateY(-8px);
}*/

.card-image {
    height: 200px;
    position: relative;
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

/* เส้นทอง + icon */
.card-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.card-divider span {
    width: 45px;
    height: 1px;
    background: #c8a45d;
}


/* ลูกศร */
.card-arrow {
    /*  margin-top: auto;*/
    position: absolute;
    right: 25px;
    bottom: 10px;
    color: #c8a45d;
    font-size: 30px;
    text-decoration: none;
    display: inline-block;
    transition: color .3s, transform .3s; 

}

.card-arrow span { 
    font-size: 12px;
    font-weight: 500;
}

.card-arrow:hover {
    /*color: #d6dde7;*/
    transform: translateX(5px);
}

/* Icon Over Image */
.card-icon {
    position: absolute;
    bottom: -25px;
    left: 25px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: white;
    border: 2px solid #c8a45d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c8a45d;
    font-size: 24px;
}




     



 