/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    color: #000;
}

ul {
    list-style: none;
}

/* Navbar */
.ai_auto_navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ai_auto_navbar_brand a {
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
}

.ai_auto_navbar_nav ul {
    display: flex;
    gap: 20px;
}

.ai_auto_navbar_nav a {
    color: #fff;
    padding: 5px 10px;
}

.ai_auto_navbar_nav a:hover {
    background: rgba(255,255,255,0.1);
}

.ai_auto_navbar_search form {
    display: flex;
}

.ai_auto_navbar_search input {
    padding: 5px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.ai_auto_navbar_search input::placeholder {
    color: #ccc;
}

.ai_auto_navbar_search button {
    padding: 5px 10px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
}

/* HERO Section */
.ai_auto_hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.ai_auto_hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.ai_auto_hero_content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 20px;
}

.ai_auto_hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.ai_auto_hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.ai_auto_search_form {
    display: flex;
}

.ai_auto_search_form input {
    padding: 10px;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #333;
    width: 300px;
}

.ai_auto_search_form button {
    padding: 10px 20px;
    border: none;
    background: #333;
    color: #fff;
    cursor: pointer;
}

/* Latest Articles Section */
.ai_auto_latest_articles {
    padding: 50px 20px;
    background: #fff;
}

.ai_auto_latest_articles h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

.ai_auto_article_grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.ai_auto_article_card {
    /* No card style */
}

.ai_auto_article_image {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.ai_auto_article_image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.ai_auto_article_content {
    padding: 10px 0;
}

.ai_auto_article_content h3 {
    font-size: 1em;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ai_auto_article_meta {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 5px;
}

.ai_auto_article_desc {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.ai_auto_article_labels {
    font-size: 0.8em;
}

.ai_auto_article_labels a {
    color: #666;
    margin-right: 5px;
}

.ai_auto_article_labels a:hover {
    color: #333;
}

.ai_auto_read_more {
    text-align: center;
    margin-top: 20px;
}

.ai_auto_read_more a {
    padding: 10px 20px;
    background: #333;
    color: #fff;
    text-decoration: none;
}

.ai_auto_read_more a:hover {
    background: #000;
}

/* Subscription Section */
.ai_auto_subscription {
    padding: 50px 20px;
    background: #f9f9f9;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.ai_auto_author_info {
    text-align: center;
    max-width: 300px;
}

.ai_auto_author_avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.ai_auto_subscribe_form {
    max-width: 400px;
    text-align: center;
}

.ai_auto_subscribe_form h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.ai_auto_subscribe_form p {
    margin-bottom: 20px;
}

.ai_auto_subscribe_form form {
    display: flex;
}

.ai_auto_subscribe_form input {
    padding: 10px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    width: 200px;
}

.ai_auto_subscribe_form button {
    padding: 10px 20px;
    border: none;
    background: #333;
    color: #fff;
    cursor: pointer;
}

/* Footer */
.ai_auto_footer {
    background: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.ai_auto_footer_content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.ai_auto_footer_site_info,
.ai_auto_footer_nav,
.ai_auto_footer_privacy,
.ai_auto_footer_contact {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.ai_auto_footer_site_info h3 {
    margin-bottom: 10px;
}

.ai_auto_footer_nav ul,
.ai_auto_footer_privacy ul,
.ai_auto_footer_contact ul {
    padding: 0;
}

.ai_auto_footer_nav li,
.ai_auto_footer_privacy li,
.ai_auto_footer_contact li {
    margin-bottom: 5px;
}

.ai_auto_footer_nav a,
.ai_auto_footer_privacy a {
    color: #fff;
}

.ai_auto_footer_nav a:hover,
.ai_auto_footer_privacy a:hover {
    color: #ccc;
}

.ai_auto_footer_copyright {
    width: 100%;
    margin-top: 20px;
    font-size: 0.9em;
    color: #ccc;
}

/* Page Banner for List Pages */
.ai_auto_page_banner {
    padding: 100px 20px 50px;
    background: #f5f5f5;
    text-align: center;
}

.ai_auto_page_banner h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.ai_auto_page_banner p {
    font-size: 1.2em;
    color: #666;
}

/* Articles List for List Pages */
.ai_auto_articles_list {
    padding: 50px 20px;
}

.ai_auto_pagination {
    text-align: center;
    margin-top: 20px;
}

/* Search Results */
.ai_auto_search_results {
    padding: 100px 20px 50px;
}

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

.ai_auto_search_list a {
    font-size: 1.2em;
    color: #333;
}

.ai_auto_search_list a:hover {
    color: #000;
}

.ai_auto_search_list p {
    color: #666;
    margin-top: 5px;
}

/* Article Detail */
.ai_auto_article_detail {
    max-width: 800px;
    margin: 100px auto 50px;
    padding: 20px;
}

.ai_auto_article_detail h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.ai_auto_article_detail img{
    width: 100%;
}

.ai_auto_article_meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
}

.ai_auto_article_meta span {
    margin-right: 15px;
}

.ai_auto_article_content {
    line-height: 1.8;
}

.ai_auto_article_content a{
    font-weight: 100;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai_auto_navbar {
        flex-direction: column;
        padding: 10px;
    }

    .ai_auto_navbar_nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .ai_auto_article_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai_auto_subscription {
        flex-direction: column;
        gap: 30px;
    }

    .ai_auto_footer_content {
        flex-direction: column;
    }

    .ai_auto_search_form input {
        width: 200px;
    }
}

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

    .ai_auto_hero h1 {
        font-size: 2em;
    }

    .ai_auto_hero p {
        font-size: 1em;
    }
}
