/* =========================================
   BLOG PAGE STYLES
   ========================================= */

.blog-hero {
    padding: 80px 0;
    text-align: center;
}

.blog-hero h1 {
    color: #fff;
    font-size: 48px;
    margin-bottom: 15px;
}

body.light .blog-hero h1 {
    color: #333;
}

.blog-hero p {
    color: #ccc;
    font-size: 18px;
    margin-bottom: 40px;
}

body.light .blog-hero p {
    color: #666;
}

/* =========================================
   BLOG SEARCH
   ========================================= */

.blog-search {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 0;
    border-radius: 4px;
    overflow: hidden;
}

.blog-search-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(11, 160, 38, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 15px;
}

.blog-search-input::placeholder {
    color: #999;
}

.blog-search-input:focus {
    outline: none;
    background: rgba(11, 160, 38, 0.1);
    border-color: #0ba026;
}

body.light .blog-search-input {
    background: rgba(11, 160, 38, 0.05);
    color: #333;
    border-color: rgba(11, 160, 38, 0.2);
}

body.light .blog-search-input::placeholder {
    color: #999;
}

body.light .blog-search-input:focus {
    background: rgba(11, 160, 38, 0.1);
}

.search-btn {
    padding: 14px 25px;
    background: linear-gradient(90deg, #0ba026 0%, #099820 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    box-shadow: 0 4px 15px rgba(11, 160, 38, 0.3);
}

/* =========================================
   BLOG CONTENT SECTION
   ========================================= */

.blog-content {
    padding: 60px 0;
}

/* =========================================
   FEATURED ARTICLE
   ========================================= */

.blog-featured {
    background: linear-gradient(135deg, rgba(11, 160, 38, 0.1) 0%, rgba(11, 160, 38, 0.05) 100%);
    border: 1px solid rgba(11, 160, 38, 0.2);
    border-radius: 8px;
    padding: 50px;
    margin-bottom: 50px;
    position: relative;
}

.featured-date {
    position: absolute;
    top: 20px;
    right: 30px;
    background: #0ba026;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.blog-featured h2 {
    color: #fff;
    font-size: 36px;
    margin: 30px 0 20px 0;
    line-height: 1.4;
}

body.light .blog-featured h2 {
    color: #333;
}

.article-meta {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #999;
}

.article-meta .author {
    color: #0ba026;
    font-weight: 600;
}

body.light .article-meta {
    color: #999;
}

.blog-featured > p {
    color: #ccc;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
}

body.light .blog-featured > p {
    color: #666;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0ba026;
    font-weight: 700;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    gap: 12px;
}

/* =========================================
   BLOG ARTICLES
   ========================================= */

.blog-articles {
    display: grid;
    gap: 30px;
    margin-bottom: 50px;
}

.blog-article {
    background: rgba(11, 160, 38, 0.05);
    border: 1px solid rgba(11, 160, 38, 0.1);
    border-radius: 6px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.blog-article:hover {
    border-color: #0ba026;
    background: rgba(11, 160, 38, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(11, 160, 38, 0.1);
}

.article-date {
    font-size: 12px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

body.light .article-date {
    color: #999;
}

.blog-article h3 {
    color: #fff;
    font-size: 22px;
    margin: 10px 0 15px 0;
    line-height: 1.4;
    transition: all 0.3s ease;
}

body.light .blog-article h3 {
    color: #333;
}

.blog-article:hover h3 {
    color: #0ba026;
}

.article-excerpt {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

body.light .article-excerpt {
    color: #666;
}

.article-footer {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.category {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.category.trading-strategy {
    background: rgba(11, 160, 38, 0.15);
    color: #0ba026;
}

.category.market-analysis {
    background: rgba(58, 134, 255, 0.15);
    color: #3a86ff;
}

.category.education {
    background: rgba(255, 159, 64, 0.15);
    color: #ff9f40;
}

.category.tutorial {
    background: rgba(153, 102, 255, 0.15);
    color: #9966ff;
}

.read-time {
    color: #999;
    font-size: 12px;
    margin-left: auto;
}

body.light .read-time {
    color: #999;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0ba026;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.article-link:hover {
    gap: 10px;
}

/* =========================================
   PAGINATION
   ========================================= */

.blog-pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 15px;
    background: rgba(11, 160, 38, 0.1);
    border: 1px solid rgba(11, 160, 38, 0.2);
    color: #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-btn:hover {
    border-color: #0ba026;
    background: rgba(11, 160, 38, 0.2);
    color: #0ba026;
}

.page-btn.active {
    background: #0ba026;
    border-color: #0ba026;
    color: #fff;
}

body.light .page-btn {
    background: rgba(11, 160, 38, 0.05);
    border-color: rgba(11, 160, 38, 0.15);
    color: #666;
}

body.light .page-btn.active {
    background: #0ba026;
    border-color: #0ba026;
    color: #fff;
}

/* =========================================
   SIDEBAR
   ========================================= */

.sidebar-widget {
    background: rgba(11, 160, 38, 0.05);
    border: 1px solid rgba(11, 160, 38, 0.1);
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 30px;
}

.sidebar-widget h4 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(11, 160, 38, 0.2);
}

body.light .sidebar-widget h4 {
    color: #333;
}

body.light .sidebar-widget {
    background: rgba(11, 160, 38, 0.02);
    border-color: rgba(11, 160, 38, 0.08);
}

/* =========================================
   CATEGORY LIST
   ========================================= */

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    color: #ccc;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    padding-left: 10px;
}

.category-list a:hover {
    color: #0ba026;
    border-left-color: #0ba026;
}

.category-list a.active {
    color: #0ba026;
    font-weight: 600;
    border-left-color: #0ba026;
}

.category-list span {
    color: #999;
    font-size: 12px;
    font-weight: 600;
}

body.light .category-list a {
    color: #666;
}

body.light .category-list span {
    color: #999;
}

/* =========================================
   RECENT ARTICLES
   ========================================= */

.recent-articles {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-articles li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(11, 160, 38, 0.1);
}

.recent-articles li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-articles a {
    color: #ccc;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.recent-articles a:hover {
    color: #0ba026;
}

.recent-articles .date {
    color: #999;
    font-size: 12px;
    font-weight: normal;
}

body.light .recent-articles a {
    color: #666;
}

/* =========================================
   NEWSLETTER WIDGET
   ========================================= */

.newsletter-widget {
    background: linear-gradient(135deg, rgba(11, 160, 38, 0.1) 0%, rgba(11, 160, 38, 0.05) 100%);
}

.newsletter-widget p {
    color: #ccc;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
}

body.light .newsletter-widget p {
    color: #666;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 10px 14px;
    border: 1px solid rgba(11, 160, 38, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
}

.newsletter-form input::placeholder {
    color: #999;
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(11, 160, 38, 0.1);
    border-color: #0ba026;
}

body.light .newsletter-form input {
    background: rgba(11, 160, 38, 0.05);
    color: #333;
}

.newsletter-form .btn {
    padding: 10px;
    background: linear-gradient(90deg, #0ba026 0%, #099820 100%);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
    box-shadow: 0 4px 12px rgba(11, 160, 38, 0.3);
}

/* =========================================
   TAG CLOUD
   ========================================= */

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(11, 160, 38, 0.1);
    color: #0ba026;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(11, 160, 38, 0.2);
}

.tag-cloud a:hover {
    background: #0ba026;
    color: #fff;
    border-color: #0ba026;
}

body.light .tag-cloud a {
    background: rgba(11, 160, 38, 0.05);
    border-color: rgba(11, 160, 38, 0.15);
}

/* =========================================
   RESPONSIVE STYLES
   ========================================= */

@media (max-width: 768px) {
    .blog-hero {
        padding: 50px 0;
    }

    .blog-hero h1 {
        font-size: 32px;
    }

    .blog-hero p {
        font-size: 16px;
    }

    .blog-search {
        flex-direction: column;
    }

    .blog-search-input {
        width: 100%;
    }

    .blog-content {
        padding: 40px 0;
    }

    .blog-featured {
        padding: 30px 20px;
        margin-bottom: 40px;
    }

    .featured-date {
        position: static;
        display: inline-block;
        margin-bottom: 15px;
    }

    .blog-featured h2 {
        font-size: 24px;
        margin: 15px 0;
    }

    .article-meta {
        gap: 15px;
        font-size: 13px;
    }

    .blog-article {
        padding: 25px;
    }

    .article-footer {
        flex-wrap: wrap;
    }

    .sidebar-widget {
        margin-bottom: 25px;
    }

    .blog-pagination {
        gap: 8px;
    }

    .page-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 24px;
    }

    .blog-hero p {
        font-size: 14px;
    }

    .blog-search-input {
        font-size: 13px;
        padding: 12px 15px;
    }

    .search-btn {
        padding: 12px 15px;
        font-size: 14px;
    }

    .blog-featured {
        padding: 20px 15px;
    }

    .blog-featured h2 {
        font-size: 18px;
    }

    .featured-date {
        font-size: 11px;
        padding: 5px 10px;
    }

    .blog-article h3 {
        font-size: 18px;
    }

    .article-excerpt {
        font-size: 13px;
    }

    .article-footer {
        gap: 10px;
        font-size: 11px;
    }

    .category {
        padding: 4px 10px;
        font-size: 11px;
    }

    .page-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .tag-cloud {
        gap: 6px;
    }

    .tag-cloud a {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* =========================================
   INDIVIDUAL ARTICLE PAGE STYLES
   ========================================= */

.blog-article section {
    padding: 60px 0;
}

.blog-article .article-content {
    background: transparent;
}

.article-header {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(11, 160, 38, 0.15);
}

.article-header h1 {
    color: #fff;
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 20px;
}

body.light .article-header h1 {
    color: #333;
}

.article-header .article-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #999;
    margin-top: 20px;
}

.article-header .date {
    font-weight: 600;
}

.article-header .author {
    color: #0ba026;
    font-weight: 600;
}

.article-header .reading-time {
    margin-left: auto;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 60px;
}

body.light .article-body {
    color: #555;
}

.article-body h2 {
    color: #fff;
    font-size: 28px;
    margin: 40px 0 20px 0;
    line-height: 1.3;
}

body.light .article-body h2 {
    color: #333;
}

.article-body h3 {
    color: #fff;
    font-size: 22px;
    margin: 30px 0 15px 0;
    line-height: 1.3;
}

body.light .article-body h3 {
    color: #333;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 20px 0 20px 30px;
    color: #ccc;
}

body.light .article-body ul,
body.light .article-body ol {
    color: #555;
}

.article-body li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: rgba(11, 160, 38, 0.05);
    border-radius: 6px;
    overflow: hidden;
}

.article-body table th {
    background: rgba(11, 160, 38, 0.15);
    color: #fff;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(11, 160, 38, 0.2);
}

body.light .article-body table th {
    background: rgba(11, 160, 38, 0.1);
    color: #333;
}

.article-body table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(11, 160, 38, 0.1);
    color: #ccc;
}

body.light .article-body table td {
    color: #555;
}

.article-body table tr:last-child td {
    border-bottom: none;
}

.comparison-table {
    width: 100%;
}

.article-cta {
    display: flex;
    gap: 15px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.article-cta .btn {
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.article-cta .btn-primary {
    background: linear-gradient(90deg, #0ba026 0%, #099820 100%);
    color: #fff;
}

.article-cta .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(11, 160, 38, 0.3);
}

.article-cta .btn-outline {
    border: 2px solid #0ba026;
    color: #0ba026;
    background: transparent;
}

.article-cta .btn-outline:hover {
    background: #0ba026;
    color: #fff;
}

.article-sidebar {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid rgba(11, 160, 38, 0.15);
}

.sidebar-widget {
    background: rgba(11, 160, 38, 0.05);
    border: 1px solid rgba(11, 160, 38, 0.1);
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 30px;
}

body.light .sidebar-widget {
    background: rgba(11, 160, 38, 0.02);
    border-color: rgba(11, 160, 38, 0.08);
}

.sidebar-widget h3 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(11, 160, 38, 0.2);
}

body.light .sidebar-widget h3 {
    color: #333;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget li {
    margin-bottom: 12px;
}

.sidebar-widget a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 0;
    border-left: 3px solid transparent;
    padding-left: 10px;
}

body.light .sidebar-widget a {
    color: #666;
}

.sidebar-widget a:hover {
    color: #0ba026;
    border-left-color: #0ba026;
}

/* Responsive for article pages */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 32px;
    }

    .article-header .article-meta {
        gap: 15px;
        font-size: 13px;
    }

    .article-body {
        font-size: 15px;
    }

    .article-body h2 {
        font-size: 24px;
        margin: 30px 0 15px 0;
    }

    .article-body h3 {
        font-size: 20px;
        margin: 20px 0 12px 0;
    }

    .article-cta {
        flex-direction: column;
    }

    .article-cta .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .article-header h1 {
        font-size: 24px;
    }

    .article-header .article-meta {
        gap: 10px;
        flex-direction: column;
        font-size: 12px;
    }

    .article-header .reading-time {
        margin-left: 0;
    }

    .article-body {
        font-size: 14px;
        line-height: 1.7;
    }

    .article-body h2 {
        font-size: 20px;
    }

    .article-body h3 {
        font-size: 17px;
    }

    .article-cta {
        flex-direction: column;
        gap: 10px;
    }

    .article-cta .btn {
        width: 100%;
        padding: 10px 20px;
    }
}
