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

body {
    font-family: 'Georgia', serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
    line-height: 1.6;
}

.ai_auto_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.ai_auto_header {
    background-color: #0d0d0d;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

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

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

.ai_auto_nav_list a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.ai_auto_nav_list a:hover {
    color: #ffd700;
}

.ai_auto_search_form {
    display: flex;
    gap: 10px;
}

.ai_auto_search_input {
    padding: 8px 15px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 20px;
    color: #f0f0f0;
    outline: none;
}

.ai_auto_search_input::placeholder {
    color: #888;
}

.ai_auto_search_btn {
    padding: 8px 20px;
    background: #ffd700;
    border: none;
    border-radius: 20px;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ai_auto_search_btn:hover {
    background: #e6c200;
}

/* Hero section */
.ai_auto_hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.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: 800px;
    margin: 0 auto;
}

.ai_auto_hero_title {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: left;
}

.ai_auto_hero_desc {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-align: left;
}

/* About section */
.ai_auto_about {
    /*padding: 80px 0;*/
    background: #222;
    /*margin-top: 60px;*/
    position: relative;
}

.ai_auto_about_content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.ai_auto_about_text {
    flex: 1;
}

.ai_auto_about_title {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 20px;
}

.ai_auto_about_desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
}

.ai_auto_about_image {
    flex: 1;
    text-align: center;
    margin-top: -15px;
    margin-bottom: -25px;
}

.ai_auto_author_avatar {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.ai_auto_section_title {
    font-size: 2.5rem;
    color: #ffd700;
    text-align: center;
    margin-bottom: 50px;
}

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

.ai_auto_article_card {
    background: #2a2a2a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(0);
}

.ai_auto_article_card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.ai_auto_article_card:nth-child(even) {
    transform: translateY(20px);
}

.ai_auto_article_card:nth-child(even):hover {
    transform: translateY(10px);
}

.ai_auto_article_image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.ai_auto_article_content {
    padding: 25px;
}

.ai_auto_article_title {
    font-size: 1.4rem;
    color: #ffd700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.ai_auto_article_desc {
    color: #ccc;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ai_auto_article_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #888;
}

.ai_auto_article_labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.ai_auto_label {
    background: #444;
    color: #ffd700;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.ai_auto_label:hover {
    background: #555;
}

.ai_auto_read_more {
    display: inline-block;
    background: #ffd700;
    color: #1a1a1a;
    padding: 6px 15px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    font-size: 13px;
}

.ai_auto_read_more:hover {
    background: #e6c200;
}

/* Subscription section */
.ai_auto_subscription {
    background: #222;
    padding: 60px 0;
    text-align: center;
}

.ai_auto_subscribe_content {
    max-width: 600px;
    margin: 0 auto;
}

.ai_auto_subscribe_title {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 15px;
}

.ai_auto_subscribe_info {
    color: #ccc;
    margin-bottom: 30px;
}

.ai_auto_subscribe_form {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.ai_auto_subscribe_input {
    flex: 1;
    padding: 12px 20px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 25px;
    color: #f0f0f0;
    outline: none;
}

.ai_auto_subscribe_input::placeholder {
    color: #888;
}

.ai_auto_subscribe_btn {
    padding: 12px 30px;
    background: #ffd700;
    border: none;
    border-radius: 25px;
    color: #1a1a1a;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.ai_auto_subscribe_btn:hover {
    background: #e6c200;
}

/* List pages */
.ai_auto_list_banner {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 80px 0;
    text-align: center;
}

.ai_auto_list_title {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 20px;
}

.ai_auto_list_desc {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

.ai_auto_list_content {
    padding: 60px 0;
}

/* Detail page */
.ai_auto_detail {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

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

.ai_auto_detail_title {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 20px;
}

.ai_auto_detail_desc {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 20px;
}

.ai_auto_detail_meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #888;
    font-size: 0.9rem;
}

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

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

.ai_auto_detail_content img {
    text-align: center;
    max-width: 100%;
}

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

/* Pagination */
.ai_auto_pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.ai_auto_pagination .pagination {
    display: flex;
    list-style: none;
    gap: 10px;
}

.ai_auto_pagination .page-link {
    padding: 8px 16px;
    background: #2a2a2a;
    color: #f0f0f0;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.ai_auto_pagination .page-link:hover,
.ai_auto_pagination .page-item.active .page-link {
    background: #ffd700;
    color: #1a1a1a;
}

.first_upper {
    font-size: 80px;
    line-height: 75px;
    padding: 6px 8px 10px 3px;
    float: left;
}

/* Footer */
.ai_auto_footer {
    background: #0d0d0d;
    padding: 50px 0 20px;
    border-top: 1px solid #333;
}

.ai_auto_footer_content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.ai_auto_footer_site_info h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.ai_auto_footer_site_desc {
    color: #ccc;
    line-height: 1.6;
}

.ai_auto_footer_nav h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.ai_auto_footer_nav_list {
    list-style: none;
}

.ai_auto_footer_nav_list li {
    margin-bottom: 8px;
}

.ai_auto_footer_nav_list a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ai_auto_footer_nav_list a:hover {
    color: #ffd700;
}

.ai_auto_footer_bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.9rem;
}

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

    .ai_auto_about_content {
        flex-direction: column;
    }

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

    .ai_auto_article_card:nth-child(even) {
        transform: translateY(0);
    }

    .ai_auto_footer_content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ai_auto_subscribe_form {
        flex-direction: column;
    }

    .ai_auto_hero_title {
        font-size: 2rem;
    }

    .ai_auto_list_title {
        font-size: 2rem;
    }
}
