/* ========================================================
   Decox Design - Projects Stylesheet (project.css)
   Applied on single-duan.php, taxonomy-duan_cat.php, archive-duan.php
   ======================================================== */

/* Project Specs Overview Box */
.project-specs-box {
    margin: 20px auto 30px;
    background: #f7f9fa;
    border: 1px solid #e5eaed;
    border-radius: 12px;
    padding: 20px 25px;
}
.project-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.project-spec-item {
    display: flex;
    flex-direction: column;
}
.project-spec-item span.label {
    font-size: 13px;
    color: #7b8893;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 500;
}
.project-spec-item span.value {
    font-size: 16px;
    color: #264c5d;
    font-weight: 700;
}

/* Single Project Detail & Fancy Gallery */
.divdetail.thugondes {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}
.divdetail .in {
    font-size: 32px;
    color: #264c5d;
    font-weight: 700;
    margin: 15px 0 10px;
    line-height: 1.3;
}
.divdetail .fancy {
    display: block;
    position: relative;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 12px;
}
.divdetail .fancy img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: transform .4s ease;
}
.divdetail .fancy:hover img {
    transform: scale(1.02);
}
.divdetail .regimgdetail {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(38,76,93,.85);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.divdetail .regimgdetail:hover {
    background: #1a3744;
}

/* Project Category Listing (Grid .listdesign) */
.project-cat-header {
    text-align: center;
    margin: 15px 0 25px;
}
.project-cat-header h1.in {
    font-size: 28px;
    color: #264c5d;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.project-cat-header p {
    color: #666;
    font-size: 15px;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}
ul.listdesign {
    margin: 0 -10px;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}
ul.listdesign li {
    width: 33.333%;
    padding: 0 10px 25px;
    box-sizing: border-box;
}
ul.listdesign .pad {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform .3s ease, box-shadow .3s ease;
}
ul.listdesign .pad:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
ul.listdesign .images {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}
ul.listdesign .images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
ul.listdesign .pad:hover .images img {
    transform: scale(1.05);
}
ul.listdesign .info {
    padding: 16px;
    flex: 1;
}
ul.listdesign .info p {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}
ul.listdesign .info p a {
    color: #264c5d;
    text-decoration: none;
    transition: color .2s;
}
ul.listdesign .info p a:hover {
    color: #aa0f15;
}
ul.listdesign .info h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #888;
}
ul.listdesign .info h3 a {
    color: #888;
    text-decoration: none;
}

/* Consultation Form in Project */
.formregis { margin: 25px auto; max-width: 65%; }
.formregis .tit {
    background: linear-gradient(67deg,rgba(38,76,93,1) 0%,rgba(1,1,18,1) 42%,rgba(38,76,93,1) 54%,rgba(38,76,93,1) 81%,rgba(1,6,9,1) 100%);
    color: #fff; text-transform: uppercase; text-align: center;
    font-size: 16px; line-height: 44px; border-radius: 10px 10px 0 0; font-weight: bold;
}
.formregis .pad { padding: 20px 40px; border: 2px solid #264c5d; border-top: 0; border-radius: 0 0 10px 10px; background: #fff; }
.formregis .row { margin-bottom: 20px; overflow: hidden; display: flex; align-items: center; }
.formregis label { width: 22%; color: #264c5d; font-weight: 600; font-size: 14px; }
.formregis input[type="text"], .formregis input[type="tel"], .formregis input[type="email"] {
    width: 78%; border: 0; border-bottom: 1px solid #264c5d; padding: 6px 8px; font-size: 14px; box-sizing: border-box;
}
.formregis input[type="submit"] {
    display: inline-block; min-width: 150px; margin: 10px 0 0; border: 1px solid #264c5d;
    border-radius: 5px; padding: 9px 24px; text-align: center; color: #fff; cursor: pointer;
    background: #264c5d; font-size: 15px; font-weight: bold; transition: background .2s;
}
.formregis input[type="submit"]:hover { background: #1a3744; }

@media screen and (max-width: 991px) {
    ul.listdesign li { width: 50%; }
    .project-specs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 640px) {
    ul.listdesign li { width: 100%; }
    .formregis { max-width: 98%; }
    .formregis .pad { padding: 15px; }
    .divdetail .in { font-size: 24px; }
}
