/*
Theme Name: Avada Child
Theme URI: https://theme-fusion.com/products/avada/
Description: Avada Child Theme for Maine Humane
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain: Avada
*/

/* ============================================
   Custom Styles for Maine Humane
   ============================================ */

/* ============================================
   Maine Humane Newsletter Archive Styles
   ============================================ */

.mh-newsletter-archive {
    margin: 40px 0;
    width: 100%;
}

.mh-archive-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin-bottom: 40px;
    list-style: none !important;
    padding: 0 !important;
}

/* Responsive columns */
@media (max-width: 1024px) {
    .mh-archive-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
}

@media (max-width: 640px) {
    .mh-archive-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Card styling */
.mh-archive-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
}

.mh-archive-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Date Header with Maine Humane brand colors */
.mh-card-date-header {
    background: linear-gradient(135deg, #2d5f8d 0%, #1e4a6b 100%); /* Maine Humane blue */
    padding: 30px 24px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

/* Optional: Add subtle pattern */
.mh-card-date-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.mh-date-month {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    color: #7bc143; /* Maine Humane green accent */
    transition: color 0.3s ease;
}

.mh-date-day {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.mh-date-year {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Hover effect - shifts to green */
.mh-archive-card:hover .mh-card-date-header {
    background: linear-gradient(135deg, #7bc143 0%, #69a838 100%); /* Maine Humane green */
}

.mh-archive-card:hover .mh-date-month {
    color: white; /* Month changes to white on hover */
}

/* Content area */
.mh-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mh-card-title {
    margin: 0 0 16px 0 !important;
    font-size: 20px !important;
    line-height: 1.4 !important;
    font-weight: 600;
}

.mh-card-title a {
    color: #333 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.mh-card-title a:hover {
    color: #2d5f8d !important; /* Maine Humane blue */
}

.mh-card-excerpt {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 20px 0 !important;
    flex-grow: 1;
}

.mh-card-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 30px;
    background: #2d5f8d !important; /* Maine Humane blue */
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    align-self: flex-start;
    border: none;
    box-shadow: 0 3px 6px rgba(45, 95, 141, 0.25);
}

.mh-card-button:hover {
    background: #7bc143 !important; /* Maine Humane green */
    color: #fff !important;
    box-shadow: 0 6px 12px rgba(123, 193, 67, 0.35);
}

.mh-card-button i {
    transition: transform 0.2s ease;
    font-size: 11px;
}

.mh-card-button:hover i {
    transform: translateX(3px);
}

/* Error message */
.mh-archive-error {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}

/* Add any other custom styles below */