@charset "utf-8";

/* =====================================================================
   Templateshut — listing styles
   Cohesive with the detail page (details.php): Verdana type, #042E3B
   headings, #EE1D25 red accents, soft slate borders. Loaded AFTER
   main.css so these rules win where they overlap (e.g. pagination).
   ===================================================================== */

/* ---- Template cards ---------------------------------------------------- */
.thumbnail {
    text-align: left;
    background: #ffffff;
    border: 1px solid #e3e9ea;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 28px;
    transition: box-shadow .2s ease, transform .2s ease;
}

.thumbnail:hover {
    box-shadow: 0 8px 22px rgba(4, 46, 59, .12);
    transform: translateY(-3px);
}

.thumbnail .tpl-thumb {
    display: block;
    line-height: 0;
}

.thumbnail img {
    width: 100%;
    height: auto;
    border: 1px solid #eaeaea;
    border-radius: 4px;
}

.thumbnail .tpl-name {
    display: block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: #042E3B;
    font-size: 15px;
    line-height: 1.3;
    margin: 12px 0 7px;
    text-decoration: none;
}

.thumbnail .tpl-name:hover {
    color: #EE1D25;
    text-decoration: none;
}

.thumbnail .tpl-desc {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    color: #5a6b70;
    font-size: 12px;
    line-height: 1.55;
    margin: 0 0 14px;
    /* clamp to 3 lines so cards stay even */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thumbnail .tpl-actions {
    padding-top: 10px;
    border-top: 1px solid #eef2f3;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
}

.thumbnail .tpl-actions a {
    color: #EE1D25;
    text-decoration: none;
}

.thumbnail .tpl-actions a:hover {
    text-decoration: underline;
}

.thumbnail .tpl-actions .sep {
    color: #cfd8da;
    margin: 0 6px;
}

/* ---- "View More" link -------------------------------------------------- */
a.green {
    text-decoration: none;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: #042E3B;
    float: right;
}

a.green:hover {
    color: #EE1D25;
}

/* ---- Pagination (overrides the orange theme in main.css) --------------- */
div.pagination {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    margin: 18px 0;
    line-height: 2.4;
}

div.pagination a,
div.pagination span.current,
div.pagination span.disabled {
    padding: 7px 12px;
    margin: 2px;
    border: 1px solid #d6e0e3;
    border-radius: 4px;
    text-decoration: none;
    color: #042E3B;
    background: #fff;
    white-space: nowrap;
}

div.pagination a:hover,
div.pagination a:active {
    border: 1px solid #EE1D25;
    color: #EE1D25;
    background: #fff;
}

div.pagination span.current {
    background: #042E3B;
    border-color: #042E3B;
    color: #fff;
    font-weight: bold;
}

div.pagination span.disabled {
    color: #c2cccf;
    border-color: #edf1f2;
}

/* drop the boxed border around the top/bottom pagination wrappers */
#mpage,
#mpageb {
    border: none !important;
    margin-top: 10px;
}

/* ---- Google AdSense slots --------------------------------------------- */
/* Reserved, evenly-spaced containers. Paste ad units inside; the margins
   keep clean separation from the surrounding content even while empty. */
.ad-slot {
    margin: 30px auto;
    text-align: center;
    clear: both;
    max-width: 100%;
}

.ad-slot .adsbygoogle {
    display: block;
}

/* sidebar 300x250 / responsive block */
.ad-side {
    margin: 24px 0;
}

/* Optional: uncomment to reserve height and avoid layout shift once live
.ad-leaderboard { min-height: 90px; }
.ad-side { min-height: 250px; }
*/
