@charset "utf-8";
/* CSS Document */
/* Container */
.newsletter-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

@media (min-width: 1024px) {
	.newsletter-container{
		margin-top: 15vh;
		position:relative;
		z-index:5;
	}
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.page-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1rem;
    color: #666;
}

/* Filter Section */
.newsletter-filter {
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    margin-bottom: 1rem;
}

.search-box input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-box button {
    padding: 0.75rem 1rem;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 1rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-options select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 1rem;
}

#sortOrder {
    background-color: #f0f8ff; /* Light blue background to highlight the sorting option */
}

/* Newsletter Grid */
.newsletter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.newsletter-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
	height:100%;
}

.newsletter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Thumbnail Styles */
.card-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	object-position: top;
    transition: transform 0.3s ease;
}

.newsletter-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
	justify-content:space-between;
}

.card-content h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: #0056b3;
	flex-shrink: 0;
}

.newsletter-description {
    font-size: 0.95rem;
    flex: 1;
	margin:0;
	line-height:1.5;
	margin-bottom:1rem;
}

/*.newsletter-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #777;
}*/

.download-button {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background-color: #0056b3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center;
	margin-top: auto;
	align-self:flex-end;
	flex-shrink: 0;
}

.download-button:hover {
    background-color: #003d7a;
}

.icon {
    margin-right: 0.5rem;
}

/* Google Form Container */
.google-form-container {
    background-color: #e9f0f7;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.google-form-container h2 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.google-form-container p {
    margin-bottom: 1.5rem;
    color: #555;
}

.google-form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.google-form iframe {
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Tablet Styles */
@media screen and (min-width: 600px) {
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .filter-options {
        flex-direction: row;
        gap: 1rem;
    }
    
    .filter-options select {
        flex: 1;
    }
    
    .newsletter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-thumbnail {
        height: 200px;
    }
}

/* Desktop Styles */
@media screen and (min-width: 992px) {
    .newsletter-container {
        padding: 2rem;
    }
    
    .page-header {
        margin-bottom: 3rem;
    }
    
    .newsletter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .card-content h2 {
        font-size: 1.5rem;
    }
    
    .newsletter-description {
        font-size: 1rem;
    }
    
    .card-thumbnail {
        height: 220px;
    }
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Search context styling */
.search-context {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-left: 3px solid #007bff;
    border-radius: 0 4px 4px 0;
}

.search-context mark {
    background-color: #fff3cd;
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
}

/* Enhanced search input */
#newsletterSearch {
    position: relative;
}

#newsletterSearch:focus {
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Results styling */
#no-results, #search-error {
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 1rem 0;
}
