/* KofC Posts Grid Styles */

.kofc_posts_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.kofc_posts_grid[data-columns-desktop="1"] {
    grid-template-columns: repeat(1, 1fr);
}

.kofc_posts_grid[data-columns-desktop="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.kofc_posts_grid[data-columns-desktop="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.kofc_posts_grid[data-columns-desktop="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.kofc_posts_grid[data-columns-desktop="5"] {
    grid-template-columns: repeat(5, 1fr);
}

.kofc_posts_grid[data-columns-desktop="6"] {
    grid-template-columns: repeat(6, 1fr);
}

.kofc_posts_grid .kofc_post_item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kofc_posts_grid .kofc_post_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.kofc_posts_grid .kofc_post_image {
    position: relative;
    overflow: hidden;
}

.kofc_posts_grid .kofc_post_image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kofc_posts_grid .kofc_post_item:hover .kofc_post_image img {
    transform: scale(1.05);
}

.kofc_posts_grid .kofc_post_content {
    padding: 1.5rem;
}

.kofc_posts_grid .kofc_post_category {
    margin-bottom: 0.75rem;
}

.kofc_posts_grid .kofc_category_link {
    background: #0073aa;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
}

.kofc_posts_grid .kofc_category_link:hover {
    background: #005a87;
    color: white;
}

.kofc_posts_grid .kofc_post_title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.kofc_posts_grid .kofc_post_title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.kofc_posts_grid .kofc_post_title a:hover {
    color: #0073aa;
}

.kofc_posts_grid .kofc_post_date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.kofc_posts_grid .kofc_post_excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.kofc_posts_grid .kofc_read_more {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.kofc_posts_grid .kofc_read_more:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Single Post Display Styles */
.kofc_single_post {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.kofc_single_post_image {
    margin-bottom: 2rem;
    text-align: center;
}

.kofc_single_post_image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.kofc_single_post_meta {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.kofc_single_post_categories {
    margin-bottom: 0.75rem;
}

.kofc_category_tag {
    background: #0073aa;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.5rem;
    transition: background-color 0.3s ease;
}

.kofc_category_tag:hover {
    background: #005a87;
    color: white;
}

.kofc_single_post_byline {
    color: #666;
    font-size: 0.9rem;
}

.kofc_single_post_title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    color: #333;
}

.kofc_single_post_excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
}

.kofc_single_post_content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

.kofc_single_post_content h1,
.kofc_single_post_content h2,
.kofc_single_post_content h3,
.kofc_single_post_content h4,
.kofc_single_post_content h5,
.kofc_single_post_content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.kofc_single_post_content p {
    margin-bottom: 1.5rem;
}

.kofc_single_post_content ul,
.kofc_single_post_content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.kofc_single_post_content li {
    margin-bottom: 0.5rem;
}

.kofc_single_post_sample_use,
.kofc_single_post_video {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.kofc_single_post_sample_use h3,
.kofc_single_post_video h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #0073aa;
    font-size: 1.25rem;
}

.kofc_single_post_video iframe,
.kofc_single_post_video video {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Tablet responsive */
@media (max-width: 768px) {
    .kofc_posts_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .kofc_posts_grid[data-columns-tablet="1"] {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .kofc_posts_grid[data-columns-tablet="2"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .kofc_posts_grid[data-columns-tablet="3"] {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .kofc_single_post {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .kofc_single_post_title {
        font-size: 2rem;
    }
}

/* Mobile responsive */
@media (max-width: 480px) {
    .kofc_posts_grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }
    
    .kofc_posts_grid[data-columns-mobile="1"] {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .kofc_posts_grid[data-columns-mobile="2"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .kofc_posts_grid .kofc_post_content {
        padding: 1rem;
    }
    
    .kofc_single_post {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .kofc_single_post_title {
        font-size: 1.75rem;
    }
}

/* Categories with Posts Styles */
.kofc_categories_with_posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.kofc_categories_with_posts[data-columns-desktop="1"] {
    grid-template-columns: repeat(1, 1fr);
}

.kofc_categories_with_posts[data-columns-desktop="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.kofc_categories_with_posts[data-columns-desktop="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.kofc_categories_with_posts[data-columns-desktop="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.kofc_category_section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.kofc_category_section:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.kofc_category_header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #0073aa;
}

.kofc_category_title {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    line-height: 1.3;
}

.kofc_category_title a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.kofc_category_title a:hover {
    color: #005a87;
}

.kofc_category_count {
    color: #666;
    font-weight: normal;
    font-size: 0.9em;
}

.kofc_category_description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 0.5rem;
}

.kofc_category_posts {
    margin-bottom: 1rem;
}

.kofc_category_post_item {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.kofc_category_post_item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.kofc_category_post_title {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.kofc_category_post_title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.kofc_category_post_title a:hover {
    color: #0073aa;
}

.kofc_category_post_date {
    color: #666;
    font-size: 0.85rem;
}

.kofc_category_view_all {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.kofc_view_all_link {
    background: #0073aa;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.kofc_view_all_link:hover {
    background: #005a87;
    color: white;
}

.kofc_category_no_posts {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

/* Tablet responsive for categories */
@media (max-width: 768px) {
    .kofc_categories_with_posts {
        grid-template-columns: repeat(1, 1fr);
        gap: 1.5rem;
    }
    
    .kofc_categories_with_posts[data-columns-tablet="1"] {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .kofc_categories_with_posts[data-columns-tablet="2"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .kofc_categories_with_posts[data-columns-tablet="3"] {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .kofc_category_section {
        padding: 1.25rem;
    }
    
    .kofc_category_title {
        font-size: 1.3rem;
    }
}

/* Mobile responsive for categories */
@media (max-width: 480px) {
    .kofc_categories_with_posts {
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }
    
    .kofc_categories_with_posts[data-columns-mobile="1"] {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .kofc_categories_with_posts[data-columns-mobile="2"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .kofc_category_section {
        padding: 1rem;
    }
    
    .kofc_category_title {
        font-size: 1.2rem;
    }
}

/* Language Switcher Styles */
.kofc-language-switcher {
    margin: 1rem 0;
}

.kofc-language-switcher .kofc-lang-dropdown {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
}

.kofc-language-switcher .kofc-lang-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.kofc-language-switcher .kofc-lang-button {
    padding: 0.5rem 1rem;
    background: #f1f1f1;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.kofc-language-switcher .kofc-lang-button:hover {
    background: #0073aa;
    color: white;
}

.kofc-language-switcher .kofc-lang-button.active {
    background: #0073aa;
    color: white;
    font-weight: bold;
}