 /* -------------------- BASE -------------------- */
 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: "Poppins", "Inter", sans-serif;
 }

 body {
     background: linear-gradient(135deg, #f0f4f8, #dfe9f3);
     min-height: 100vh;
     padding: 20px;
     color: #333;
 }

 /* -------------------- TEMPLATE GRID -------------------- */
 .template-container {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 35px;
     max-width: 1300px;
     margin: 50px auto;
     padding: 10px;
 }

 /* -------------------- CARD -------------------- */
 .template-card {
     background: #fff;
     border-radius: 18px;
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
     overflow: hidden;
     transition: all 0.35s ease;
     cursor: pointer;
     position: relative;
     display: flex;
     flex-direction: column;
     height: 100%;
 }

 .template-card:hover {
     transform: translateY(-8px);
     box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
 }

 .template-card img {
     width: 100%;
     height: 320px;
     /* increased for large visual */
     object-fit: cover;
     transition: transform 0.4s ease;
 }

 .template-card:hover img {
     transform: scale(1.06);
 }

 .template-info {
     padding: 18px 22px;
     display: flex;
     justify-content: space-between;
     align-items: center;
     background: #fff;
     border-top: 1px solid #eee;
     flex-grow: 1;
 }

 .template-info h3 {
     font-size: 20px;
     font-weight: 600;
     color: #2d3436;
     margin: 0;
 }

 .template-info .price {
     background: linear-gradient(90deg, #28a745, #00b894);
     color: #fff;
     padding: 7px 16px;
     border-radius: 25px;
     font-size: 16px;
     font-weight: 600;
     letter-spacing: 0.3px;
     box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
 }

 /* -------------------- HOVER OVERLAY EFFECT -------------------- */
 .overlay {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.45);
     color: #fff;
     display: flex;
     align-items: center;
     justify-content: center;
     opacity: 0;
     transition: opacity 0.3s ease;
     font-size: 18px;
     font-weight: 500;
     letter-spacing: 0.5px;
 }

 .template-card:hover .overlay {
     opacity: 1;
 }

 /* -------------------- RESPONSIVE -------------------- */
 @media (max-width: 900px) {
     .template-container {
         grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
         gap: 25px;
     }

     .template-card img {
         height: 250px;
     }

     .template-info h3 {
         font-size: 18px;
     }

     .template-info .price {
         font-size: 15px;
         padding: 6px 14px;
     }
 }

 @media (max-width: 600px) {
     .template-card img {
         height: 220px;
     }

     .template-info {
         flex-direction: column;
         align-items: flex-start;
         gap: 8px;
     }

     .template-info .price {
         align-self: flex-end;
     }
 }