/* ===================================
   ARTICLES PAGE - CUSTOM STYLES
   =================================== */

.ki-articles-page {
    background: linear-gradient(135deg, #001f1a 0%, #002b24 100%);
    min-height: 100vh;
}

/* ===================================
   HERO SECTION
   =================================== */

.ki-articles-hero {
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(93, 223, 207, 0.1) 0%, rgba(93, 223, 207, 0.05) 100%);
    border-bottom: 1px solid rgba(93, 223, 207, 0.2);
    margin-bottom: 60px;
}

.ki-articles-hero h1 {
    animation: fadeInDown 0.8s ease-out;
}

.ki-articles-hero p {
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

/* ===================================
   SEARCH BAR
   =================================== */

.ki-articles-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.ki-search-input {
    width: 100%;
    padding: 15px 20px 15px 45px;
    border: 2px solid rgba(93, 223, 207, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.ki-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.ki-search-input:focus {
    outline: none;
    border-color: #5ddfcf;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(93, 223, 207, 0.2);
}

.ki-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: rgba(93, 223, 207, 0.6);
    pointer-events: none;
}

/* ===================================
   MAIN ARTICLES SECTION
   =================================== */

.ki-articles-main {
    padding: 40px 20px 80px;
}

/* ===================================
   CATEGORY TABS/BUTTONS
   =================================== */

.ki-categories-wrapper {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 60px;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.ki-category-btn {
    padding: 12px 24px;
    border: 2px solid rgba(93, 223, 207, 0.3);
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.ki-category-btn:hover {
    border-color: #5ddfcf;
    color: #5ddfcf;
    background: rgba(93, 223, 207, 0.1);
}

.ki-category-btn.active {
    background: #5ddfcf;
    border-color: #5ddfcf;
    color: #001f1a;
}

/* ===================================
   ARTICLES GRID
   =================================== */

.ki-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ===================================
   ARTICLE CARD
   =================================== */

.ki-article-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ki-article-card:hover {
    border-color: rgba(93, 223, 207, 0.5);
    background: rgba(93, 223, 207, 0.05);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(93, 223, 207, 0.1);
}

/* Article Image */
.ki-article-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(93, 223, 207, 0.1) 0%, rgba(93, 223, 207, 0.05) 100%);
}

.ki-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ki-article-card:hover .ki-article-image img {
    transform: scale(1.05);
}

/* Article Content */
.ki-article-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ki-article-category-badge {
    display: inline-block;
    background: rgba(93, 223, 207, 0.2);
    color: #5ddfcf;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    width: fit-content;
}

.ki-article-title {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.ki-article-card:hover .ki-article-title a {
    color: #5ddfcf;
}

.ki-article-description {
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ki-article-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .ki-articles-hero {
        padding: 40px 20px;
        margin-bottom: 40px;
    }

    .ki-articles-hero h1 {
        font-size: 2rem;
    }

    .ki-articles-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ki-categories-wrapper {
        gap: 10px;
        margin-bottom: 40px;
    }

    .ki-category-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .ki-article-card:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 480px) {
    .ki-articles-hero h1 {
        font-size: 1.5rem;
    }

    .ki-articles-hero p {
        font-size: 0.95rem;
    }

    .ki-article-content {
        padding: 20px;
    }

    .ki-article-title {
        font-size: 1.1rem;
    }
}
