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

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

.ai_auto_container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header styles */
.ai_auto_header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
    padding: 15px 0;
}

.ai_auto_navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai_auto_brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c5530;
    text-decoration: none;
}

.ai_auto_nav_links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.ai_auto_nav_links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

.ai_auto_nav_links a:hover {
    color: #2c5530;
}

.ai_auto_search_form {
    display: flex;
    align-items: center;
}

.ai_auto_search_input {
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 0;
    font-size: 0.9rem;
    width: 200px;
}

.ai_auto_search_button {
    background: #2c5530;
    color: #fff;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 0;
    margin-left: 5px;
}

/* Hero section */
.ai_auto_hero {
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    position: relative;
}

.ai_auto_hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent, #fefefe);
}

.ai_auto_hero_content {
    z-index: 1;
    margin-left: 10%;
    max-width: 600px;
}

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

.ai_auto_hero_desc {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.ai_auto_hero_search {
    display: flex;
}

.ai_auto_hero_search_input {
    border: 1px solid #ccc;
    padding: 12px 15px;
    width: 350px;
    border-radius: 0;
    font-size: 1rem;
}

.ai_auto_hero_search_button {
    background: #2c5530;
    color: #fff;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 0;
    margin-left: 5px;
    font-size: 1rem;
}

/* Latest Articles */
.ai_auto_articles {
    padding: 80px 0;
}

.ai_auto_articles h2 {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    color: #2c5530;
}

.ai_auto_article_item {
    display: flex;
    margin-bottom: 60px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-height: 400px;
}

.ai_auto_article_item:nth-child(odd) {
    flex-direction: row;
}

.ai_auto_article_item:nth-child(even) {
    flex-direction: row-reverse;
}

.ai_auto_article_image {
    flex: 1;
    position: relative;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*.ai_auto_article_image::before {*/
/*    content: '🖇️';*/
/*    position: absolute;*/
/*    top: 10px;*/
/*    left: 50%;*/
/*    transform: translateX(-50%);*/
/*    width: 30px;*/
/*    height: 10px;*/
/*    background: #ccc;*/
/*    border-radius: 2px;*/
/*}*/

.ai_auto_article_image img {
    width: 90%;
    height: 300px;
    object-fit: cover;
    border: 8px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: rotate(-3deg);
    transition: transform 0.3s;
}

.ai_auto_article_image1 img {
    width: 90%;
    height: 300px;
    object-fit: cover;
    border: 8px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: rotate(3deg);
    transition: transform 0.3s;
}

.ai_auto_article_image img:hover {
    transform: rotate(0deg);
}

.ai_auto_article_content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ai_auto_article_title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2c5530;
}

.ai_auto_article_title a {
    text-decoration: none;
    color: inherit;
}

.ai_auto_article_desc {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #666;
    line-height: 1.7;
}

.ai_auto_article_meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}

.ai_auto_article_labels {
    margin-top: 10px;
}

.ai_auto_label {
    display: inline-block;
    background-color: #e8f5e8;
    padding: 4px 8px;
    margin-right: 8px;
    margin-bottom: 5px;
    text-decoration: none;
    color: #2c5530;
    border-radius: 0;
    font-size: 0.8rem;
}

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

.ai_auto_read_more_link {
    display: inline-block;
    background: #2c5530;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 0;
    font-weight: bold;
    transition: background 0.3s;
}

.ai_auto_read_more_link:hover {
    background: #1e3a24;
}

/* Subscription */
.ai_auto_subscription {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.ai_auto_author_info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.ai_auto_author_avatar {
    width: 100px;
    height: 100px;
    border-radius: 0;
    margin-right: 25px;
    object-fit: cover;
    border: 3px solid #2c5530;
}

.ai_auto_author_text h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #2c5530;
}

.ai_auto_author_text p {
    font-size: 1rem;
    color: #666;
}

.ai_auto_subscribe_content {
    text-align: center;
}

.ai_auto_subscribe_content h2 {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2c5530;
}

.ai_auto_subscribe_content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ai_auto_subscribe_form {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.ai_auto_subscribe_input {
    border: 1px solid #ccc;
    padding: 12px 15px;
    width: 100%;
    border-radius: 0;
    font-size: 1rem;
}

.ai_auto_subscribe_button {
    background: #2c5530;
    color: #fff;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 0;
    margin-left: 5px;
    font-size: 1rem;
    white-space: nowrap;
}

/* Footer */
.ai_auto_footer {
    background-color: #2c5530;
    color: #fff;
    padding: 50px 0 30px;
}

.ai_auto_footer_content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ai_auto_footer_title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.ai_auto_footer_desc {
    margin-bottom: 30px;
    text-align: center;
    max-width: 600px;
    color: #e0e0e0;
}

.ai_auto_footer_nav {
    list-style: none;
    display: flex;
    margin-bottom: 25px;
    gap: 25px;
}

.ai_auto_footer_nav a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    transition: color 0.3s;
}

.ai_auto_footer_nav a:hover {
    color: #a8d5ba;
}

.ai_auto_footer_privacy {
    list-style: none;
    display: flex;
    margin-bottom: 25px;
    gap: 20px;
}

.ai_auto_footer_privacy a {
    text-decoration: none;
    color: #ccc;
    font-size: 0.9rem;
}

.ai_auto_contact_us {
    list-style: none;
    margin-bottom: 25px;
    text-align: center;
}

.ai_auto_contact_us li {
    margin: 5px 0;
    color: #e0e0e0;
}

.ai_auto_copyright {
    font-size: 0.9rem;
    color: #ccc;
    text-align: center;
}

/* List pages */
.ai_auto_list_page {
    padding: 60px 0;
}

.ai_auto_page_banner {
    text-align: center;
    margin-bottom: 50px;
}

.ai_auto_page_title {
    font-size: 3rem;
    font-weight: bold;
    color: #2c5530;
    margin-bottom: 15px;
}

.ai_auto_page_desc {
    font-size: 1.3rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.ai_auto_list_items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.ai_auto_list_item {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ai_auto_list_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.ai_auto_list_item_image {
    height: 220px;
    overflow: hidden;
}

.ai_auto_list_item_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai_auto_list_item_content {
    padding: 25px;
}

.ai_auto_list_item_title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c5530;
}

.ai_auto_list_item_title a {
    text-decoration: none;
    color: inherit;
}

.ai_auto_list_item_desc {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.ai_auto_list_item_meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}

.ai_auto_list_item_labels {
    margin-top: 10px;
}

/* Detail page */
.ai_auto_detail {
    padding: 60px 0;
}

.ai_auto_detail_title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2c5530;
    line-height: 1.2;
}

.ai_auto_detail_meta {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.ai_auto_detail_content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

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

.ai_auto_detail_content h2, .ai_auto_detail_content h3 {
    color: #2c5530;
    margin: 30px 0 15px;
}

/* Search page */
.ai_auto_search_page {
    padding: 60px 0;
}

.ai_auto_search_page h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #2c5530;
    text-align: center;
}

.ai_auto_search_results {
    list-style: none;
    margin-bottom: 50px;
}

.ai_auto_search_result_item {
    margin-bottom: 25px;
    padding: 25px;
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #2c5530;
}

.ai_auto_search_result_link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ai_auto_search_result_title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c5530;
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 40px;
}

.pagination li {
    margin: 0 5px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 0;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #2c5530;
    color: #fff;
    border-color: #2c5530;
}

.pagination .active span {
    background: #2c5530;
    color: #fff;
    border-color: #2c5530;
}

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

    .ai_auto_nav_links {
        gap: 15px;
    }

    .ai_auto_hero {
        height: 60vh;
        justify-content: center;
        text-align: center;
    }

    .ai_auto_hero_content {
        margin-left: 0;
        padding: 0 20px;
    }

    .ai_auto_hero_title {
        font-size: 2.5rem;
    }

    .ai_auto_article_item {
        flex-direction: column !important;
    }

    .ai_auto_article_image {
        padding: 15px;
    }

    .ai_auto_article_content {
        padding: 25px;
    }

    .ai_auto_list_items {
        grid-template-columns: 1fr;
    }

    .ai_auto_subscribe_form {
        flex-direction: column;
    }

    .ai_auto_subscribe_button {
        margin-left: 0;
        margin-top: 10px;
    }

    .ai_auto_footer_nav, .ai_auto_footer_privacy {
        flex-direction: column;
        gap: 10px;
    }
}
