body {
    margin: 0;
    padding: 0;
}

/* Coming Soon / Maintenance Page Styles */
.coming-soon-container {
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.logo-placeholder {
    width: 200px;
    height: 200px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 2px;
}

.logo-image {
    max-width: 200px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 40px;
}

.coming-soon-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.coming-soon-subtitle {
    font-size: 1.2rem;
    font-weight: 200;
    opacity: 0.8;
    letter-spacing: 1px;
}

/* Home Page Content Styles - REMOVED conflicting styles, now using main CSS */
/* .home-container styles are now defined in cmtyone.css */

.home-header {
    text-align: center;
    margin-bottom: 60px;
}

.home-logo {
    margin-bottom: 20px;
}

.home-logo img {
    max-width: 200px;
    height: auto;
}

.home-title {
    font-size: 3rem;
    color: #333;
    margin-bottom: 10px;
}

.home-tagline {
    font-size: 1.2rem;
    color: #666;
}

.home-intro {
    margin-bottom: 40px;
}

.articles-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
}

.articles-list {
    margin-bottom: 20px;
}

.article-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.article-title {
    margin-bottom: 10px;
}

.article-title a {
    color: #667eea;
    text-decoration: none;
    font-size: 1.5rem;
}

.article-title a:hover {
    text-decoration: underline;
}

.article-date {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.article-intro {
    color: #555;
    line-height: 1.6;
}

.no-articles {
    text-align: center;
    padding: 40px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.no-articles-title {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.no-articles-link {
    color: #999;
    font-size: 0.9rem;
}

.no-articles-link a {
    color: #667eea;
}

/* Legacy styles - keeping for backward compatibility */
.hero-section {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #fff;
    color: #667eea;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: #667eea;
    text-decoration: none;
}

.features-section {
    padding: 80px 20px;
    background-color: #f8f9fa;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.feature-description {
    color: #666;
    line-height: 1.6;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Home Page Specific Styles */
/* Most styles are now in the main cmtyone.css file */

/* Additional home page specific overrides can go here */
.template-homepage .home-container {
    /* Any specific overrides for home page */
}

/* Custom animations for home page */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.featured-article,
.side-article,
.grid-article {
    animation: fadeInUp 0.6s ease-out;
}

.side-article:nth-child(2) {
    animation-delay: 0.1s;
}

.grid-article:nth-child(2) {
    animation-delay: 0.1s;
}

.grid-article:nth-child(3) {
    animation-delay: 0.2s;
}

/* Hover effects specific to home page */
.featured-article:hover .article-image,
.side-article:hover .article-image,
.grid-article:hover .article-image {
    transform: none;
}

/* Tags Page Styles */
.tags-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tags-header {
    text-align: center;
    margin-bottom: 40px;
}

.tags-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

.tagged-articles {
    /* Clean layout like latest posts section */
}

.tagged-articles .article-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.tagged-articles .article-item:last-child {
    border-bottom: none;
}

.tagged-articles .article-image-wrapper {
    /* Clean wrapper */
}

.tagged-articles .article-image-link {
    display: block;
}

.tagged-articles .article-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

.tagged-articles .article-content {
    /* Clean content area */
}

.tagged-articles .article-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.3;
}

.tagged-articles .article-title a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

.tagged-articles .article-title a:hover {
    opacity: 0.7;
}

.tagged-articles .article-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.tagged-articles .article-intro {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.tagged-articles .read-more {
    display: inline-block;
    padding: 8px 16px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 0;
    transition: background 0.2s;
}

.tagged-articles .read-more:hover {
    background: #333;
}

.no-results-wrapper {
    text-align: center;
    padding: 60px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.no-results {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Dark Mode Support for Tags Page */
body.dark-mode .tags-header h1 {
    color: #fff;
}

body.dark-mode .tagged-articles .article-item {
    border-bottom-color: #333;
}

body.dark-mode .tagged-articles .article-intro {
    color: #fff;
}

body.dark-mode .tagged-articles .article-date {
    color: #ccc;
}

body.dark-mode .tagged-articles .read-more {
    background: #fff;
    color: #000;
}

body.dark-mode .tagged-articles .read-more:hover {
    background: #ddd;
}

body.dark-mode .no-results-wrapper {
    border-bottom-color: #333;
}

body.dark-mode .no-results {
    color: #ccc;
}

/* Responsive adjustments for tags page */
@media (max-width: 768px) {
    .tagged-articles .article-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tagged-articles .article-thumbnail {
        height: 180px;
    }
    
    .tags-header h1 {
        font-size: 1.3rem;
    }
}

/* Article Page Styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.post-header {
    margin-bottom: 40px;
    text-align: center;
}

.post-meta h1 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #000;
}

.post-meta time {
    color: #666;
    font-size: 1rem;
    display: block;
}

.post-featured-image {
    margin-bottom: 40px;
    width: 100%;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    line-height: 1.7;
    color: #333;
}

.post-intro {
    font-size: 1.2rem;
    color: #555;
    font-style: italic;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.post-body {
    font-size: 1.1rem;
}

.post-body h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #000;
}

.post-body h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #000;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body ul,
.post-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-body li {
    margin-bottom: 8px;
}

.post-body blockquote {
    border-left: 4px solid #000;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
}

/* Dark mode support for article page */
body.dark-mode .blog-post {
    color: #fff;
}

body.dark-mode .post-meta h1 {
    color: #fff;
}

body.dark-mode .post-meta time {
    color: #ccc;
}

body.dark-mode .post-content {
    color: #ccc;
}

body.dark-mode .post-intro {
    color: #ccc;
    border-bottom-color: #444;
}

body.dark-mode .post-body h2,
body.dark-mode .post-body h3 {
    color: #fff;
}

body.dark-mode .post-body blockquote {
    border-left-color: #fff;
    color: #999;
}

/* Responsive styles for article page */
@media (max-width: 768px) {
    .blog-post {
        padding: 30px 15px;
    }
    
    .post-meta h1 {
        font-size: 2rem;
    }
    
    .post-header {
        margin-bottom: 30px;
    }
    
    .post-featured-image {
        margin-bottom: 30px;
    }
}

/* Search Page Styles */
.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.search-header {
    text-align: center;
    margin-bottom: 40px;
}

.search-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

.search-query {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 5px;
}

.search-count {
    font-size: 0.9rem;
    color: #999;
}

/* Search Form */
.search-form-container {
    max-width: 600px;
    margin: 0 auto 50px;
}

.search-form-main {
    display: flex;
    gap: 0;
    border: 2px solid #f0f0f0;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
}

.search-input-main {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.search-submit-main {
    padding: 15px 25px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.search-submit-main:hover {
    background: #333;
}

/* Search Results */
.search-results {
    margin-bottom: 40px;
}

.search-result-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 2rem;
}

.search-result-content h2 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.3;
}

.search-result-content h2 a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

.search-result-content h2 a:hover {
    opacity: 0.7;
}

.search-result-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.search-result-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.search-result-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    color: #666;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pagination */
.search-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid #f0f0f0;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.pagination-link:hover {
    background: #333;
}

.pagination-info {
    font-size: 0.9rem;
    color: #666;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 20px;
}

.no-results h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.no-results p {
    color: #666;
    margin-bottom: 30px;
}

.search-suggestions {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.search-suggestions h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
}

.search-suggestions li {
    padding: 5px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.search-suggestions li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ccc;
}

.search-suggestions a {
    color: #000;
    text-decoration: none;
}

.search-suggestions a:hover {
    text-decoration: underline;
}

/* Search Welcome */
.search-welcome {
    text-align: center;
    padding: 60px 20px;
}

.search-welcome-icon {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 20px;
}

.search-welcome h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.search-welcome p {
    color: #666;
    margin-bottom: 40px;
}

.search-categories h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
}

.category-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-link {
    padding: 10px 20px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.category-link:hover {
    background: #000;
    color: #fff;
}

/* Dark Mode Support for Search */
body.dark-mode .search-header h1 {
    color: #fff;
}

body.dark-mode .search-query {
    color: #ccc;
}

body.dark-mode .search-count {
    color: #999;
}

body.dark-mode .search-form-main {
    border-color: #333;
    background: #111;
}

body.dark-mode .search-input-main {
    color: #fff;
    background: transparent;
}

body.dark-mode .search-input-main::placeholder {
    color: #666;
}

body.dark-mode .search-submit-main {
    background: #fff;
    color: #000;
}

body.dark-mode .search-submit-main:hover {
    background: #ddd;
}

body.dark-mode .search-result-item {
    border-bottom-color: #333;
}

body.dark-mode .search-result-date,
body.dark-mode .search-result-excerpt {
    color: #ccc;
}

body.dark-mode .category-tag {
    background: #333;
    color: #ccc;
}

body.dark-mode .pagination-link {
    background: #fff;
    color: #000;
}

body.dark-mode .pagination-link:hover {
    background: #ddd;
}

body.dark-mode .pagination-info {
    color: #ccc;
}

body.dark-mode .no-results h2,
body.dark-mode .search-welcome h2,
body.dark-mode .search-suggestions h3,
body.dark-mode .search-categories h3 {
    color: #fff;
}

body.dark-mode .no-results p,
body.dark-mode .search-welcome p {
    color: #ccc;
}

body.dark-mode .category-link {
    background: #333;
    color: #ccc;
}

body.dark-mode .category-link:hover {
    background: #fff;
    color: #000;
}

/* Responsive Search Styles */
@media (max-width: 768px) {
    .search-container {
        padding: 30px 15px;
    }
    
    .search-header h1 {
        font-size: 1.5rem;
    }
    
    .search-result-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .search-result-image {
        height: 180px;
    }
    
    .search-pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .category-links {
        flex-direction: column;
        align-items: center;
    }
    
    .category-link {
        width: 200px;
        text-align: center;
    }
}