/* Search icon */


/* Search modal overlay */
.tgpl-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.tgpl-search-modal.show {
    display: flex;
}
.tgpl-search-container {
    background: #fff;
    max-width: 600px;
    width: 90%;
    border-radius: 8px;
    padding: 30px;
    position: relative;
}
.tgpl-search-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}
.tgpl-search-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 30px;
    outline: none;
    font-family: 'Roboto', sans-serif;
}
.tgpl-search-input:focus {
    border-color: #377a28;
}
.tgpl-search-dropdown {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}
.tgpl-search-section {
    margin-bottom: 20px;
}
.tgpl-search-section h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #377a28;
    font-family: 'Montserrat', sans-serif;
}
.tgpl-search-section ul {
    list-style: none;
    padding: 0;
}
.tgpl-search-section li {
    margin-bottom: 8px;
    display: flex;
}
.tgpl-search-section a {
    color: #222;
    text-decoration: none;
    display: block;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.2s;
    font-family: 'Roboto', sans-serif;
}
.tgpl-search-section a:hover {
    background: #f5f5f5;
    color: #377a28;
}

/*
============================================
*/


/* Search results page */
.tgpl-search-results-list {
    list-style: none;
    padding: 0;
}
.tgpl-search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;l
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.tgpl-search-result-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}
.tgpl-search-result-content a {
    font-size: 18px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
}
.tgpl-search-result-content a:hover {
    color: #377a28;
}

/*
=================================================
*/

.tgpl-search-dropdown .tgpl-search-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin-right: 10px;
    vertical-align: middle;
}

/*
=================================================
*/

.tgpl-search-all {
    text-align: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.tgpl-search-all a {
    color: #377a28;
    text-decoration: none;
    font-weight: 500;
}
.tgpl-search-all a:hover {
    text-decoration: underline;
}

/*
==================================================
*/


.tgpl-search-section li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.tgpl-search-section li img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}
.tgpl-search-section a {
    flex: 1;
}


/* Search results grid – 3 columns */
.tgpl-search-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.tgpl-search-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tgpl-search-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.tgpl-search-card-image {
    position: relative;
    padding-bottom: 66.67%;
    background: #f5f5f5;
}

.tgpl-search-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tgpl-search-card-content {
    padding: 20px;
}

.tgpl-search-card-title {
	
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.tgpl-search-card-title a {
	font-family: 'Roboto', sans-serif!important;
    color: #222;
    text-decoration: none;
}

.tgpl-search-card-title a:hover {
    color: #377a28;
}

.tgpl-search-card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .tgpl-search-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media (max-width: 480px) {
    .tgpl-search-grid {
        grid-template-columns: 1fr;
    }
}
