/* TechMadeIzy homepage.css
   Adapted from the original KRIPTIQ homepage.css.
   Crypto/market-specific styles have been removed.
*/

/* HERO */

.hero{
    min-height:auto;
    padding:110px 4% 80px;
    position:relative;
    overflow:hidden;
    z-index:0;
}

.bg-logo{
    position:absolute;
    right:8%;
    top:56%;
    transform:translateY(-50%);
    width:28%;
    opacity:1;
    z-index:1;
    pointer-events:none;
    filter:none;
}

.hero-left{
    position:relative;
    z-index:2;
    max-width:760px;
}

.hero-tag{
    display:inline-block;
    border:1px solid rgba(22,119,210,0.30);
    color:#1677D2;
    padding:10px 18px;
    border-radius:999px;
    font-size:14px;
    margin-bottom:28px;
}

.hero h1{
    font-size:72px;
    line-height:1.04;
    margin-bottom:26px;
    font-weight:900;
    color:#172033;
}

.hero-line-1{
    font-size:52px;
    letter-spacing:-2.2px;
}

.hero-line-2{
    font-size:76px;
    letter-spacing:5px;
}

.hero-gradient{
    background:linear-gradient(90deg,#1677D2,#39A9FF);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.hero p{
    color:#64748B;
    font-size:24px;
    line-height:1.8;
    max-width:680px;
    margin-bottom:0;
}

/* FEATURED ARTICLES */

.featured-library-section{
    padding:0 5%;
}

.featured-library-wrap{
    width:100%;
}

.homepage-section-heading{
    margin-bottom:10px;
}

.homepage-section-heading h2{
    color:#8A4B16;
    font-size:52px;
    line-height:1.1;
    margin:0 0 16px;
    font-weight:800;
}

.homepage-section-heading p{
    color:#64748B;
    max-width:760px;
    line-height:1.8;
    font-size:18px;
    margin:0;
}

.featured-articles-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
    margin-top:38px;
}

.featured-article-card{
    background:#FFFFFF;
    border:1px solid #DCE4EC;
    border-radius:24px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    height:100%;
    min-width:0;
    transition:
        transform .25s ease,
        border-color .25s ease;
}

.featured-article-card:hover{
    transform:translateY(-4px);
    border-color:#1677D2;
}

.featured-article-image{
    display:block;
    width:100%;
    height:220px;
    overflow:hidden;
}

.featured-article-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.35s ease;
}

.featured-article-card:hover .featured-article-image img{
    transform:scale(1.04);
}

.featured-article-content{
    padding:24px;
    display:flex;
    flex-direction:column;
    flex-grow:1;
}

.featured-article-category{
    display:inline-block;
    width:fit-content;
    padding:7px 14px;
    border-radius:999px;
    background:rgba(22,119,210,0.10);
    color:#1677D2;
    font-size:14px;
    font-weight:700;
    letter-spacing:.02em;
    margin-bottom:14px;
}

.featured-article-content h3{
    font-size:22px;
    line-height:1.3;
    margin:0;
    font-weight:700;
    letter-spacing:-.3px;
    flex-grow:1;
}

.featured-article-content h3 a{
    color:#172033;
}

.featured-article-meta{
    color:#64748B;
    font-size:13px;
    margin-top:18px;
}

.featured-article-empty{
    min-height:330px;
}

.featured-article-placeholder{
    height:220px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#F4F7FA;
    color:#94A3B8;
    font-size:14px;
    font-weight:600;
}

/* EXPLORE CATEGORIES */

.categories-section{
    margin-top:55px;
}

.category-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
    margin-top:30px;
}

.category-card{
    background:#FFFFFF;
    border:1px solid #DCE4EC;
    border-radius:18px;
    padding:10px 14px;
    min-height:130px;
    box-shadow:0 5px 18px rgba(23,32,51,0.05);
    transition:.25s ease;
    display:grid;
    grid-template-columns:78px 1fr;
    grid-template-rows:auto auto auto;
    column-gap:12px;
    align-items:center;
    text-decoration:none;
}

.category-card:hover{
    transform:translateY(-3px);
    border-color:#1677D2;
    box-shadow:0 9px 24px rgba(23,32,51,0.08);
}

.category-image{
    width:78px;
    height:78px;
    grid-column:1;
    grid-row:1 / span 3;
    flex:none;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0;
}

.category-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}

.category-card h3{
    grid-column:2;
    grid-row:1;
    color:#172033;
    font-size:17px;
    line-height:1.2;
    margin:0 0 6px;
    font-weight:800;
}

.category-card p{
    grid-column:2;
    grid-row:2;
    color:#64748B;
    line-height:1.45;
    font-size:14px;
    margin:0;
}

.category-card span{
    grid-column:2;
    grid-row:3;
    color:#1677D2;
    font-weight:700;
    font-size:13px;
    margin-top:6px;
}


/* HANGING SLOTH MASCOT */

.sloth-mascot{
    position:absolute;
    z-index:3;
    width:125px;
    height:auto;
    right:18%;
    top:52%;
    pointer-events:none;
    transform-origin:50% 8%;
    animation:sloth-hang 4.5s ease-in-out infinite;
}

@keyframes sloth-hang{
    0%,100%{
        transform:rotate(-5deg) translateY(0);
    }
    50%{
        transform:rotate(5deg) translateY(5px);
    }
}


/* RESPONSIVE */

@media(max-width:1200px){

    .featured-articles-grid,
    .feature-grid,
    .category-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:900px){

    .bg-logo{
        width:420px;
        top:240px;
        left:50%;
        right:auto;
        transform:translateX(-50%);
    }

    .sloth-mascot{
        width:100px;
        right:18%;
        top:42%;
    }
}


@media(max-width:768px){

    .hero{
        padding:30px 20px 40px;
        min-height:auto;
    }
    
    .bg-logo{
        width:190px;
        top:48%;
        right:3%;
        left:auto;
        transform:translateY(-50%);
    }
    
    .sloth-mascot{
        width:70px;
        right:13%;
        top:46%;
    }
    
    .hero-tag{
        font-size:11px;
        padding:8px 14px;
        margin-bottom:16px;
    }

    .hero h1{
        font-size:42px;
        line-height:0.98;
        letter-spacing:-1px;
        margin-bottom:18px;
    }

    .hero-line-1{
        font-size:28px;
        letter-spacing:-1.3px;
    }
    
    .hero-line-2{
        font-size:42px;
        letter-spacing:3px;
    }

    .hero p{
        font-size:15px;
        line-height:1.55;
        max-width:100%;
        margin-top:-6px;
    }

    .featured-library-section{
        margin-top:-16px;
    }
    
    .homepage-section-heading h2{
        font-size:26px;
        line-height:1.08;
        margin-bottom:10px;
    }

    .homepage-section-heading p{
        font-size:13px;
        line-height:1.55;
    }

    .featured-articles-grid,
    .feature-grid{
        grid-template-columns:1fr;
        gap:18px;
        margin-top:24px;
    }

    .featured-article-image,
    .featured-article-placeholder{
        height:180px;
    }

    .featured-article-content{
        padding:20px;
    }

    .featured-article-content h3{
        font-size:18px;
    }
    
    .featured-article-meta{
        font-size:12px;
        margin-top:12px;
    }
    
    .featured-article-category{
        font-size:12px;
        padding:6px 11px;
        margin-bottom:10px;
        color:#8A4B16;
    }

    .feature-card{
        padding:22px;
        min-height:130px;
    }

    .feature-card h3{
        font-size:10px;
    }

    .categories-section{
        margin-top:48px;
    }

    .category-grid{
        grid-template-columns:1fr;
        gap:16px;
        margin-top:22px;
    }
    
    .category-card{
        min-height:100px;
        padding:10px 14px;
        gap:8px;
    }
    
    .category-image{
        width:85px;
        height:85px;
        flex:0 0 85px;
    }
    
    .category-card h3{
        font-size:16px;
    }
    
    .category-card p{
        font-size:13px;
        line-height:1.2;
    }
    
    .category-card span{
        font-size:12px;
        margin-top:4px;
    }
}


