/* Docfi-inspired Custom Styles for Docly Theme */

:root {
    --docfi-primary: #4C4CF1;
    --docfi-gradient: linear-gradient(60deg, #4C4CF1 0%, #8A4CFF 100%);
    --docfi-card-shadow: 0 10px 30px rgba(76, 76, 241, 0.08);
}

/* Post card thumbnail */
.docfi-post-thumb {
    margin: -35px -35px 20px -35px;
    /* bleed to card edges */
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    line-height: 0;
}

.docfi-post-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.docfi-post-card:hover .docfi-post-thumb img {
    transform: scale(1.05);
}

/* View all button */
.doc_border_btn {
    display: inline-block;
    padding: 14px 40px;
    border: 2px solid var(--docfi-primary);
    border-radius: 40px;
    color: var(--docfi-primary);
    font-weight: 700;
    transition: all 0.3s ease;
}

.doc_border_btn:hover {
    background: var(--docfi-primary);
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 76, 241, 0.25);
}


/* Hero Section */
.docfi-hero {
    background: var(--docfi-gradient);
    padding: 120px 0 160px;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

.docfi-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #fff;
}

.docfi-search-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 10px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.docfi-search-dropdown {
    border: none;
    border-right: 1px solid #eee;
    padding: 0 20px;
    color: #666;
    font-size: 14px;
    background: transparent;
    cursor: pointer;
    min-width: 150px;
}

.docfi-search-input {
    flex: 1;
    border: none;
    padding: 0 20px;
    font-size: 16px;
    color: #333;
}

.docfi-search-input:focus {
    outline: none;
}

.docfi-search-btn {
    background: var(--docfi-primary);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.docfi-search-btn:hover {
    background: #3A3AD1;
    transform: translateY(-2px);
}

.docfi-popular-keywords {
    margin-top: 25px;
    font-size: 14px;
}

.docfi-popular-keywords a {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 10px;
    text-decoration: underline;
}

/* Category Cards */
.docfi-categories {
    margin-top: -80px;
    position: relative;
    z-index: 5;
}

.docfi-cat-card {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--docfi-card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

.docfi-cat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(76, 76, 241, 0.15);
}

.docfi-cat-icon {
    width: 60px;
    height: 60px;
    background: rgba(76, 76, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--docfi-primary);
}

.docfi-cat-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.docfi-cat-title h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.docfi-article-count {
    font-size: 12px;
    color: #999;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 20px;
}

.docfi-article-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.docfi-article-list li {
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
}

.docfi-article-list li i {
    margin-right: 10px;
    color: #ccc;
    margin-top: 4px;
}

.docfi-article-list li a {
    color: #666;
    transition: color 0.3s ease;
}

.docfi-article-list li a:hover {
    color: var(--docfi-primary);
}

.docfi-view-all {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #eee;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #777;
    transition: all 0.3s ease;
}

.docfi-view-all:hover {
    border-color: var(--docfi-primary);
    color: var(--docfi-primary);
    background: rgba(76, 76, 241, 0.05);
}

/* Navigation CTA */
.docfi-nav-btn {
    background: var(--docfi-primary);
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    margin-left: 20px;
    transition: all 0.3s ease;
}

/* Animations */
@keyframes bloom {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float-y {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Floating Shapes */
.p_absolute {
    position: absolute;
}

.bl_left {
    left: 5%;
    top: 20%;
    width: 80px;
    animation: float-y 4s ease-in-out infinite;
}

.bl_right {
    right: 5%;
    bottom: 20%;
    width: 100px;
    animation: float-y 5s ease-in-out infinite;
}

.star {
    left: 15%;
    bottom: 10%;
    width: 40px;
    opacity: 0.6;
}

.one {
    right: 10%;
    top: 15%;
    width: 250px;
}

.two {
    right: 5%;
    bottom: 5%;
    width: 150px;
}

/* Counter Section */
.docfi-stats-area {
    padding: 80px 0;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.docfi-stat-item {
    text-align: center;
}

.docfi-counter {
    font-size: 42px;
    font-weight: 800;
    color: var(--docfi-primary);
    display: block;
    margin-bottom: 10px;
}

.docfi-stat-label {
    font-size: 16px;
    color: #777;
    font-weight: 600;
}

/* Featured Section */
.docfi-featured-docs {
    background: #fcfcfd;
    padding: 100px 0;
}

.docfi-featured-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.docfi-featured-card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(76, 76, 241, 0.1);
}

.docfi-feat-icon {
    width: 50px;
    height: 50px;
    background: #f0f0ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--docfi-primary);
    font-size: 20px;
}

.docfi-feat-content h4 {
    font-size: 18px;
    margin: 0 0 5px;
    font-weight: 700;
}

/* Background Blob Decorations */
.docfi-landing-v2 {
    position: relative;
    overflow: hidden;
}

.docfi-landing-v2::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(76, 76, 241, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    top: -100px;
    left: -200px;
    z-index: 0;
    border-radius: 50%;
}

.docfi-landing-v2::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(138, 76, 255, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: 20%;
    right: -100px;
    z-index: 0;
    border-radius: 50%;
}

/* Floating Technical Icons */
.docfi-floating-icon {
    position: absolute;
    font-size: 24px;
    color: rgba(76, 76, 241, 0.2);
    z-index: 0;
    pointer-events: none;
    animation: float-y 6s ease-in-out infinite;
}

.fi-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.fi-2 {
    top: 25%;
    right: 12%;
    animation-delay: 1s;
}

.fi-3 {
    bottom: 30%;
    left: 15%;
    animation-delay: 2s;
}

.fi-4 {
    bottom: 15%;
    right: 8%;
    animation-delay: 3s;
}

.docfi-feat-content p {
    font-size: 14px;
    color: #888;
    margin: 0;
}