
/*==================================================
APC COMMUNITY
LEARNING PREMIUM
DESIGN SYSTEM
==================================================*/

:root{

    --primary:#4f46e5;
    --primary-dark:#4338ca;
    --primary-light:#eef2ff;

    --success:#10b981;
    --warning:#f59e0b;
    --danger:#ef4444;

    --text:#111827;
    --text-light:#6b7280;

    --background:#f5f7fb;

    --card:#ffffff;

    --border:#e5e7eb;

    --radius:20px;

    --radius-sm:14px;

--shadow:

    0 12px 32px rgba(15,23,42,.08),

    0 2px 8px rgba(15,23,42,.05);

    --transition:.25s ease;

}



/*==================================================
BODY
==================================================*/

body{

    background:var(--background);

    color:var(--text);

    font-family:

        Inter,

        system-ui,

        sans-serif;

}



/*==================================================
LAYOUT
==================================================*/

.learning-page{

    padding:22px 0 60px;

}



.learning-page .container{

    max-width:1400px;

}



.learning-feed{

    display:flex;

    flex-direction:column;

    gap:22px;

}



/*==================================================
HERO
==================================================*/

.learning-hero{

    background:

        linear-gradient(

            135deg,

            #4f46e5,

            #6366f1

        );

    border-radius:24px;

    padding:26px 30px;

    color:#fff;

    margin-bottom:22px;

    box-shadow:var(--shadow);

}



.learning-hero__content{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:30px;

}



.learning-hero__left{

    display:flex;

    align-items:center;

    gap:18px;

}



.learning-hero__icon{

    width:64px;

    height:64px;

    border-radius:18px;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:30px;

    background:

        rgba(255,255,255,.16);

}



.learning-hero h1{

    margin:0;

    font-size:2rem;

    font-weight:800;

}



.learning-hero p{

    margin:8px 0 16px;

    color:

        rgba(255,255,255,.90);

    max-width:620px;

    line-height:1.65;

}



/*==================================================
HERO STATS
==================================================*/

.learning-hero__stats{

    display:flex;

    gap:16px;

    flex-wrap:wrap;

}



.learning-hero__stats div{

    background:

        rgba(255,255,255,.14);

    border-radius:14px;

    padding:10px 16px;

}



.learning-hero__stats strong{

    display:block;

    font-size:1.05rem;

    font-weight:700;

}



.learning-hero__stats span{

    font-size:.82rem;

    color:

        rgba(255,255,255,.85);

}



/*==================================================
CREATE BUTTON
==================================================*/

.learning-create-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    background:#ffffff !important;

    color:var(--primary) !important;

    border:2px solid #ffffff;

    border-radius:14px;

    padding:12px 22px;

    font-size:16px;

    font-weight:700 !important;

    text-decoration:none;

    box-shadow:

        0 8px 24px rgba(0,0,0,.12);

    transition:all .25s ease;

}

.learning-create-btn:hover{

    background:#f8fafc !important;

    color:var(--primary-dark) !important;

    transform:translateY(-2px);

    box-shadow:

        0 12px 30px rgba(0,0,0,.18);

}

.learning-create-btn i{

    font-size:16px;

}


/*==================================================
SEARCH
==================================================*/

.learning-search{

    background:#fff;

    border-radius:20px;

    padding:20px;

    margin-bottom:24px;

    box-shadow:var(--shadow);

}



.learning-search__row{

    display:flex;

    align-items:center;

    gap:14px;

}



.learning-search__input{

    position:relative;

    flex:1;

}



.learning-search__input i{

    position:absolute;

    left:18px;

    top:50%;

    transform:translateY(-50%);

    color:#94a3b8;

}



.learning-search__input input{

    width:100%;

    height:54px;

    border:1px solid var(--border);

    border-radius:16px;

    padding-left:50px;

    padding-right:18px;

    outline:none;

    transition:var(--transition);

}



.learning-search__input input:focus{

    border-color:var(--primary);

    box-shadow:

        0 0 0 4px

        rgba(79,70,229,.10);

}



.learning-search-btn{

    height:54px;

    border:none;

    border-radius:16px;

    padding:0 26px;

    background:var(--primary);

    font-weight:700;

}



.learning-search-btn:hover{

    background:var(--primary-dark);

}



.learning-reset{

    text-decoration:none;

    color:var(--danger);

    font-weight:600;

}



/*==================================================
SMALL RESPONSIVE
==================================================*/

@media(max-width:992px){

.learning-hero__content{

    flex-direction:column;

    align-items:flex-start;

}

.learning-search__row{

    flex-direction:column;

}

.learning-search-btn{

    width:100%;

}

}



@media(max-width:768px){

.learning-page{

    padding-top:16px;

}

.learning-hero{

    padding:22px;

}

.learning-hero__left{

    flex-direction:column;

    align-items:flex-start;

}

.learning-hero__stats{

    width:100%;

}

.learning-hero__stats div{

    flex:1;

}

}


/*==================================================
FEED
==================================================*/

.feed-card{

    background:#fff;

    border:1px solid var(--border);

    border-radius:18px;

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.feed-card:hover{

    transform:translateY(-4px);

    box-shadow:

        0 24px 60px rgba(15,23,42,.12),

        0 8px 20px rgba(15,23,42,.08);

}



/*==================================================
HEADER
==================================================*/

.feed-card__header{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    padding:18px 20px 14px;

}



/*==================================================
USER
==================================================*/

.feed-user{

    display:flex;

    align-items:center;

    gap:12px;

}



.feed-avatar,

.feed-avatar-placeholder{

    width:44px;

    height:44px;

    border-radius:50%;

    flex-shrink:0;

}



.feed-avatar{

    object-fit:cover;

}



.feed-avatar-placeholder{

    display:flex;

    justify-content:center;

    align-items:center;

    background:#eef2ff;

    text-decoration:none;

    font-size:18px;

}



.feed-user__name{

    text-decoration:none;

    color:var(--text);

    font-size:15px;

    font-weight:700;

}



.feed-user__name:hover{

    color:var(--primary);

}



.feed-user__meta{

    margin-top:3px;

    font-size:12px;

    color:var(--text-light);

}



.country-flag{

    width:20px;

    height:15px;

    object-fit:cover;

    margin-left:6px;

    border-radius:2px;

}



/*==================================================
RIGHT
==================================================*/

.feed-card__right{

    display:flex;

    align-items:center;

    gap:10px;

}



.feed-type{

    background:#eef2ff;

    color:var(--primary);

    font-size:12px;

    font-weight:700;

    padding:6px 12px;

    border-radius:999px;

}



.feed-menu{

    width:36px;

    height:36px;

    border:none;

    background:#fff;

    border-radius:50%;

    transition:var(--transition);

}



.feed-menu:hover{

    background:#f3f4f6;

}



/*==================================================
BODY
==================================================*/

.feed-card__body{

    padding:0 20px 18px;

}



/*==================================================
TITLE
==================================================*/

.feed-title{

    margin:0 0 12px;

    font-size:20px;

    font-weight:700;

    line-height:1.35;

    color:var(--text);

}



/*==================================================
CONTENT
==================================================*/

.feed-content{

    color:.feed-content;

    line-height:1.65;

    font-size:16px;

    display:-webkit-box;

    -webkit-line-clamp:4;

    -webkit-box-orient:vertical;

    overflow:hidden;

}



/*==================================================
IMAGE
==================================================*/

.feed-media{

    margin-top:16px;

}



.feed-image{

    width:100%;

    height:260px;

    object-fit:cover;

    border-radius:14px;

    display:block;

}



/*==================================================
VIDEO / LINK
==================================================*/

.feed-video-placeholder,

.feed-link-placeholder{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:10px;

    height:160px;

    border-radius:14px;

    background:#f8fafc;

    border:1px dashed #cbd5e1;

    color:#64748b;

    font-weight:600;

}



/*==================================================
FOOTER
==================================================*/

.feed-card__footer{

    display:flex;

    align-items:center;

    justify-content:flex-start;

    flex-wrap:wrap;

    gap:10px;

    padding:14px 18px;

    border-top:1px solid var(--border);

    background:#fcfcfd;

}



.feed-footer__link{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    height:40px;

    padding:0 16px;

    border-radius:999px;

    background:#f3f4f6;

    color:#374151;

    text-decoration:none;

    font-size:14px;

    font-weight:700;

    transition:.25s;

}



.feed-footer__link:first-child{

    background:var(--primary);

    color:#fff;

    padding:0 22px;

}



.feed-footer__link:hover{

    background:var(--primary-light);

    color:var(--primary);

    transform:translateY(-2px);

}

.feed-footer__link:first-child:hover{

    background:var(--primary-dark);

    color:#fff;

}


/*==================================================
RESPONSIVE
==================================================*/

@media(max-width:768px){

.feed-card__header{

    padding:16px;

}

.feed-card__body{

    padding:0 16px 16px;

}

.feed-card__footer{

    justify-content:space-between;

}


.feed-title{

    font-size:18px;

}

.feed-content{

    -webkit-line-clamp:3;

}

.feed-image{

    height:190px;

}

.feed-footer__link{

    flex:1;

    min-width:72px;

    padding:0 10px;

    font-size:13px;

}

.feed-footer__link:first-child{

    flex:10%;

    margin-bottom:8px;

}

}


/*==================================================
SIDEBAR
==================================================*/

.sidebar-card{

    background:#fff;

    border:1px solid var(--border);

    border-radius:18px;

    padding:20px;

    margin-bottom:22px;

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.sidebar-card:hover{

    transform:translateY(-4px);

    box-shadow:

        0 24px 60px rgba(15,23,42,.12),

        0 8px 20px rgba(15,23,42,.08);

}


/*==================================================
TITLE
==================================================*/

.sidebar-title{

    font-size:16px;

    font-weight:700;

    margin-bottom:18px;

    color:var(--text);

}



/*==================================================
CREATE CARD
==================================================*/

.sidebar-create{

    background:

        linear-gradient(

            135deg,

            #4f46e5,

            #6366f1

        );

    color:#fff;

    overflow:hidden;

    position:relative;

}



.sidebar-create::before{

    content:"";

    position:absolute;

    width:180px;

    height:180px;

    right:-70px;

    top:-70px;

    border-radius:50%;

    background:

        rgba(255,255,255,.08);

}



.sidebar-create>*{

    position:relative;

    z-index:2;

}



.sidebar-create__icon{

    width:64px;

    height:64px;

    margin:auto;

    margin-bottom:18px;

    border-radius:18px;

    display:flex;

    justify-content:center;

    align-items:center;

    background:

        rgba(255,255,255,.15);

    font-size:30px;

}



.sidebar-create h4{

    font-size:22px;

    font-weight:700;

    text-align:center;

}



.sidebar-create p{

    margin:14px 0 22px;

    text-align:center;

    line-height:1.7;

    color:

        rgba(255,255,255,.90);

}



.sidebar-create .btn{

    border:none;

    border-radius:14px;

    font-weight:700;

}



/*==================================================
TOP CONTRIBUTORS
==================================================*/

.sidebar-user{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:12px;

    padding:12px 0;

    border-bottom:1px solid #f3f4f6;

}



.sidebar-user:last-child{

    border-bottom:none;

}



.sidebar-user>div{

    flex:1;

}



.sidebar-avatar{

    width:44px;

    height:44px;

    border-radius:50%;

    object-fit:cover;

}



.sidebar-user strong{

    display:block;

    font-size:14px;

}



.sidebar-user div div{

    font-size:12px;

    color:var(--text-light);

}



.sidebar-user span{

    font-size:12px;

    font-weight:700;

    color:var(--primary);

    background:#eef2ff;

    padding:6px 10px;

    border-radius:999px;

}



/*==================================================
VIEW ALL
==================================================*/

.sidebar-view-all{

    display:inline-block;

    margin-top:16px;

    text-decoration:none;

    font-weight:700;

    color:var(--primary);

}



.sidebar-view-all:hover{

    color:var(--primary-dark);

}



/*==================================================
POPULAR TOPICS
==================================================*/

.topic-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    text-decoration:none;

    color:var(--text);

    padding:12px 14px;

    border-radius:12px;

    margin-bottom:8px;

    transition:var(--transition);

}



.topic-item:hover{

    background:#f8fafc;

    color:var(--primary);

}



.topic-item span{

    font-size:12px;

    font-weight:700;

    background:#eef2ff;

    color:var(--primary);

    padding:5px 10px;

    border-radius:999px;

}



/*==================================================
STREAK
==================================================*/

.streak-circle{

    width:100px;

    height:100px;

    margin:0 auto 18px;

    border-radius:50%;

    background:

        linear-gradient(

            135deg,

            #4f46e5,

            #7c3aed

        );

    display:flex;

    justify-content:center;

    align-items:center;

    color:#fff;

    font-size:28px;

    font-weight:800;

}



.streak-text{

    text-align:center;

    color:var(--text-light);

    line-height:1.7;

    margin-bottom:20px;

}



/*==================================================
BUTTONS
==================================================*/

.sidebar-card .btn{

    border-radius:14px;

    font-weight:700;
    width: 50% !important;
    pad: 30px 5px;

}



/*==================================================
RESPONSIVE
==================================================*/

@media(max-width:992px){

.sidebar-card{

    margin-top:22px;

}

}



@media(max-width:768px){

.sidebar-card{

    padding:18px;

}

.sidebar-create h4{

    font-size:20px;

}

.sidebar-create__icon{

    width:56px;

    height:56px;

    font-size:26px;

}

.streak-circle{

    width:85px;

    height:85px;

    font-size:24px;

}

}


/*==================================================
LOAD MORE BUTTON
==================================================*/

.load-more-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:12px;

    min-width:250px;

    height:58px;

    padding:0 34px;

    border:none;

    border-radius:999px;

    background:

        linear-gradient(
            135deg,
            #4f46e5,
            #6366f1
        ) !important;

    color:#fff !important;

    font-size:15px;

    font-weight:700;

    letter-spacing:.2px;

    box-shadow:

        0 12px 32px

        rgba(79,70,229,.22);

    transition:.28s ease;

}

.load-more-btn:hover{

    transform:

        translateY(-3px);

    color:#fff !important;

    box-shadow:

        0 22px 45px

        rgba(79,70,229,.35);

}

.load-more-btn:active{

    transform:scale(.98);

}

.load-more-btn:disabled{

    opacity:.65;

    cursor:not-allowed;

    transform:none;

}

.load-more-btn i{

    font-size:18px;

}



/*==================================================
GLOBAL LINKS
==================================================*/

a{

    transition:var(--transition);

}



/*==================================================
BUTTONS
==================================================*/

.btn{

    transition:var(--transition);

}

.btn:hover{

    transform:translateY(-2px);

}



/*==================================================
CARDS
==================================================*/

.feed-card,
.sidebar-card,
.learning-search,
.learning-hero,
.feed-end{

    box-shadow:var(--shadow);

    animation:fadeUp .35s ease;

}



@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(18px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}



/*==================================================
IMAGE
==================================================*/

.feed-media{

    overflow:hidden;

    border-radius:14px;

}

.feed-image{

    transition:

        transform .45s ease,

        filter .45s ease;

}

.feed-image:hover{

    transform:scale(1.03);

    filter:brightness(1.02);

}



/*==================================================
FOOTER LINKS
==================================================*/

.feed-footer__link{

    position:relative;

}

.feed-footer__link::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-3px;

    width:0;

    height:2px;

    background:var(--primary);

    transition:.25s;

}

.feed-footer__link:hover::after{

    width:100%;

}



/*==================================================
INPUT
==================================================*/

input{

    transition:var(--transition);

}



/*==================================================
FOCUS
==================================================*/

input:focus,

button:focus,

a:focus{

    outline:none;

}



/*==================================================
SPACING
==================================================*/

.feed-card:last-child{

    margin-bottom:0;

}

.sidebar-card:last-child{

    margin-bottom:0;

}



/*==================================================
SCROLLBAR
==================================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#eef2f7;

}

::-webkit-scrollbar-thumb{

    background:#cbd5e1;

    border-radius:999px;

}

::-webkit-scrollbar-thumb:hover{

    background:#94a3b8;

}



/*==================================================
DESKTOP
==================================================*/

@media(min-width:1400px){

.learning-page .container{

    max-width:1380px;

}

}



/*==================================================
LAPTOP
==================================================*/

@media(max-width:1200px){

.feed-title{

    font-size:18px;

}

.feed-image{

    height:230px;

}

}



/*==================================================
TABLET
==================================================*/

@media(max-width:992px){

.learning-page{

    padding:18px 0 40px;

}

/*==================================================
LOAD MORE CONTAINER
==================================================*/

.learning-load-more{

    display:flex;

    justify-content:center;

    align-items:center;

    margin:38px auto 10px;

}

.load-more-btn{

    width:50%;

}

.feed-card{

    border-radius:16px;

}

.sidebar-card{

    border-radius:16px;

}

}



/*==================================================
MOBILE
==================================================*/

@media(max-width:768px){

.learning-page{

    padding-top:14px;

}

.learning-feed{

    gap:16px;

}

.feed-card__header{

    padding:14px 16px 10px;

}

.feed-card__body{

    padding:0 16px 14px;

}

.feed-card__footer{

    padding:12px 16px;

    justify-content:space-between;

    gap:10px;

}

.feed-footer__link{

    font-size:13px;

}

.feed-title{

    font-size:17px;

}

.feed-user{

    gap:10px;

}

.feed-avatar,

.feed-avatar-placeholder{

    width:40px;

    height:40px;

}

.feed-user__name{

    font-size:14px;

}

.feed-user__meta{

    font-size:11px;

}

.feed-content{

    font-size:15px;

    line-height:1.55;

}

.feed-image{

    height:180px;

}

.learning-hero{

    border-radius:18px;

}

.learning-search{

    border-radius:18px;

}

.sidebar-card{

    padding:16px;

}

}



/*==================================================
SMALL MOBILE
==================================================*/

@media(max-width:480px){

.learning-search{

    padding:16px;

}

.feed-card{

    border-radius:14px;

}

.feed-card__header{

    padding:12px 14px 8px;

}

.feed-card__body{

    padding:0 14px 12px;

}

.feed-card__footer{

    padding:10px 14px;

    flex-wrap:wrap;

}

.feed-title{

    font-size:16px;

}

.feed-image{

    height:160px;

}

.feed-user__meta{

    display:flex;

    flex-wrap:wrap;

    gap:4px;

}

.load-more-btn{

    min-width:50%;

}

}

/*Hide side Bar*/
/*==================================================
HIDE SIDEBAR ON MOBILE
==================================================*/

@media (max-width: 991.98px){

    .col-xl-4.col-lg-4{

        display:none;

    }

    .col-xl-8.col-lg-8{

        width:100%;

        flex:0 0 100%;

        max-width:100%;

    }

}


/*==================================================
END OF FEED
==================================================*/

.feed-end{

    background:#fff;

    border:1px solid var(--border);

    border-radius:20px;

    padding:34px;

    text-align:center;

    box-shadow:var(--shadow);

    animation:fadeUp .35s ease;

}

.feed-end__icon{

    width:74px;

    height:74px;

    margin:0 auto 20px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:#ecfdf5;

    color:#10b981;

    font-size:34px;

}

.feed-end h4{

    margin-bottom:10px;

    font-size:22px;

    font-weight:700;

}

.feed-end p{

    margin:0;

    color:#6b7280;

    line-height:1.7;

}

@media(max-width:768px){

    .feed-end{

        padding:24px;

    }

    .feed-end h4{

        font-size:19px;

    }

}


/*Automatique loader*/
.load-more-btn{

    display:none;

}
    

