/*
Theme Name: Twenty Twenty-Two Child
Template: twentytwentytwo
*/

/* Theme Color Variables */
:root {
    --theme-early-contact: #f9a34a;
    --theme-civil-right: #c25773;
    --theme-performing-arts: #8a84ab;
    --theme-visual-arts: #5d8dc0;
    --theme-sport-leisure: #8a9b3c;
    --theme-education: #a07e6e;
    --theme-working-life: #57b29e;
}

/*text-pretty*/
.text-pretty {
    text-wrap: pretty;
}

/* Themes Grid Layout */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.theme-item {
    background: #fff;
    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;
}

.theme-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.theme-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.theme-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.theme-item:hover .theme-image img {
    transform: scale(1.05);
}

.theme-content {
    padding: 1.5rem;
}

.theme-content h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

.theme-content h3 a {
    text-decoration: none;
    color: #333;
}

.theme-content h3 a:hover {
    color: #007cba;
}

.theme-description {
    color: #666;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.theme-count {
    margin: 0;
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .themes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .theme-content {
        padding: 1rem;
    }
}


.themes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.theme-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.theme-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.theme-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 10px solid transparent;
}

/* Theme-specific border colors */
.theme-image.theme-early-contact {
    border-bottom-color: var(--theme-early-contact);
}

.theme-image.theme-civil-rights {
    border-bottom-color: var(--theme-civil-right);
}

.theme-image.theme-performing-arts {
    border-bottom-color: var(--theme-performing-arts);
}

.theme-image.theme-visual-arts {
    border-bottom-color: var(--theme-visual-arts);
}

.theme-image.theme-sport-leisure {
    border-bottom-color: var(--theme-sport-leisure);
}

.theme-image.theme-education {
    border-bottom-color: var(--theme-education);
}

.theme-image.theme-working-life {
    border-bottom-color: var(--theme-working-life);
}

.theme-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.theme-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.theme-item:hover .theme-image img {
    transform: scale(1.05);
}

.theme-no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.theme-no-image a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.theme-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.theme-item h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    line-height: 1.3;
}

.theme-item h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease;
}

.theme-item h3 a:hover {
    color: #0073aa;
}

.theme-description {
    color: #666;
    margin: 0 0 auto 0;
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

.theme-count {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #666;
    margin-top: 15px;
    align-self: flex-start;
}

/* Responsive Design */
@media (max-width: 768px) {
    .themes-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
   
    .theme-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .themes-list {
        grid-template-columns: 1fr;
    }
}

/* Theme Featured Image Styles */
.theme-featured-image {
    width: 100% !important;
    height: auto;
    display: block;
}

.theme-featured-image-wrapper {
    width: 100%;
    margin: 0;
}

.theme-image-caption {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Sticky Sites Styles */
.site-item.sticky {
    border-left: 4px solid #0073aa;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 3px 15px rgba(0, 115, 170, 0.1);
}

.site-item.sticky::before {
    content: "📌";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    opacity: 0.7;
}

.site-item.sticky .site-title {
    color: #0073aa;
    font-weight: 600;
}

.site-item.sticky .site-title::after {
    content: " (Sticky)";
    font-size: 0.8em;
    color: #666;
    font-weight: normal;
    font-style: italic;
}

.entry-content a {
    word-break: break-word;
}

.wp-block-cover {
    overflow: visible !important;
    z-index: 9999;
}
 .featuredcaption {
    font-style: italic;
} 