/* =====================================
   TEMPLATES SECTION
===================================== */

.templates-section{
    max-width:1200px;
    margin:55px auto;
    padding:0 20px;
    text-align:center;
}

.templates-section .section-title{
    font-size:34px;
    color:#800020;
    font-weight:700;
    margin-bottom:10px;
    font-family:'Poppins', sans-serif;
}

.templates-subtitle{
    color:#666;
    font-size:16px;
    margin-bottom:35px;
}

.templates-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:24px;
}

.template-card{
    position:relative;
    background:#ffffff;
    border-radius:18px;
    padding:28px 20px;
    text-decoration:none;
    border:1px solid #ececec;
    box-shadow:0 10px 28px rgba(0,0,0,0.08);
    transition:all .35s ease;
    overflow:hidden;
}

.template-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:5px;
    background:linear-gradient(90deg,#800020,#D4AF37);
}

.template-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 35px rgba(128,0,32,0.16);
    border-color:#D4AF37;
}

.template-icon{
    font-size:42px;
    margin-bottom:16px;
}

.template-card h3{
    margin:0;
    color:#800020;
    font-size:19px;
    line-height:1.45;
    font-weight:700;
}

.template-card span{
    display:inline-block;
    margin-top:14px;
    padding:8px 16px;
    border-radius:30px;
    background:#f7e8ec;
    color:#800020;
    font-size:14px;
    font-weight:600;
    transition:0.3s ease;
}

.template-card:hover span{
    background:#800020;
    color:#fff;
}

@media (max-width:768px){

    .templates-section .section-title{
        font-size:28px;
    }

    .templates-subtitle{
        font-size:15px;
        margin-bottom:28px;
    }

    .templates-grid{
        grid-template-columns:1fr;
        gap:18px;
    }

    .template-card{
        padding:24px 18px;
    }

    .template-icon{
        font-size:36px;
    }

    .template-card h3{
        font-size:17px;
    }
}